cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher added in v1.0.1

type Cacher interface {
	Register(string, string) error
	Deregister(string) bool
	Get(string) (*entity.Registrant, bool)
	Update(string) error
}

type EntryExists

type EntryExists struct{}

EntryExists error

func (*EntryExists) Error

func (ee *EntryExists) Error() string

type MaestroCache added in v1.0.1

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

func New added in v1.0.1

func (*MaestroCache) Deregister added in v1.0.1

func (mc *MaestroCache) Deregister(id string) bool

func (*MaestroCache) Get added in v1.0.1

func (mc *MaestroCache) Get(id string) (*entity.Registrant, bool)

func (*MaestroCache) Register added in v1.0.1

func (mc *MaestroCache) Register(id, address string) error

func (*MaestroCache) Update added in v1.0.1

func (mc *MaestroCache) Update(id string) error

Jump to

Keyboard shortcuts

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