Documentation ¶
Overview ¶
Package memory provides an in-memory registry
Index ¶
- Variables
- func NewRegistry(opts ...registry.Option) registry.Registry
- func Services(s map[string][]*registry.Service) registry.Option
- type Registry
- func (m *Registry) Deregister(s *registry.Service) error
- func (m *Registry) GetService(name string) ([]*registry.Service, error)
- func (m *Registry) Init(opts ...registry.Option) error
- func (m *Registry) ListServices() ([]*registry.Service, error)
- func (m *Registry) Options() registry.Options
- func (m *Registry) Register(s *registry.Service, opts ...registry.RegisterOption) error
- func (m *Registry) String() string
- func (m *Registry) Watch(opts ...registry.WatchOption) (registry.Watcher, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultTTL = 1 * time.Minute
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.