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