redis

package
v0.0.0-...-230a2ce Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(e *shh.PairEvent)

type Option

type Option func(*Store) error

func WithAddress

func WithAddress(address string) Option

func WithExpirationTime

func WithExpirationTime(duration time.Duration) Option

type Store

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

func NewStore

func NewStore(opts ...Option) (*Store, error)

func (*Store) GetPair

func (s *Store) GetPair(token, publicKey string) (*shh.Pair, error)

func (*Store) ObservePublic

func (s *Store) ObservePublic(token, publicKey string, callback func(e *shh.PairEvent)) error

func (*Store) RegisterNewPair

func (s *Store) RegisterNewPair(token string, pair *shh.Pair) error

Jump to

Keyboard shortcuts

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