redis

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr, pass string) registry.Registry

Types

type RedisRegistry

type RedisRegistry struct {
	// contains filtered or unexported fields
}

func (*RedisRegistry) Close

func (r *RedisRegistry) Close() error

func (*RedisRegistry) DeletePeer

func (r *RedisRegistry) DeletePeer(p *peer.Peer) error

func (*RedisRegistry) FetchPeers

func (r *RedisRegistry) FetchPeers() ([]*peer.Peer, error)

func (*RedisRegistry) SavePeer

func (r *RedisRegistry) SavePeer(p *peer.Peer, ttl int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL