go-micro: github.com/micro/go-micro/registry/memory Index | Files

package memory

import "github.com/micro/go-micro/registry/memory"

Package memory provides an in-memory registry


Package Files

memory.go options.go util.go watcher.go

func NewRegistry Uses

func NewRegistry(opts ...registry.Option) registry.Registry

NewRegistry returns an initialized in-memory registry

func Services Uses

func Services(s map[string][]*registry.Service) registry.Option

Services is an option that preloads service data

type Registry Uses

type Registry struct {
    // contains filtered or unexported fields

func (*Registry) Deregister Uses

func (m *Registry) Deregister(s *registry.Service, opts ...registry.DeregisterOption) error

func (*Registry) GetService Uses

func (m *Registry) GetService(name string, opts ...registry.GetOption) ([]*registry.Service, error)

func (*Registry) Init Uses

func (m *Registry) Init(opts ...registry.Option) error

func (*Registry) ListServices Uses

func (m *Registry) ListServices(opts ...registry.ListOption) ([]*registry.Service, error)

func (*Registry) Options Uses

func (m *Registry) Options() registry.Options

func (*Registry) Register Uses

func (m *Registry) Register(s *registry.Service, opts ...registry.RegisterOption) error

func (*Registry) String Uses

func (m *Registry) String() string

func (*Registry) Watch Uses

func (m *Registry) Watch(opts ...registry.WatchOption) (registry.Watcher, error)

type Watcher Uses

type Watcher struct {
    // contains filtered or unexported fields

func (*Watcher) Next Uses

func (m *Watcher) Next() (*registry.Result, error)

func (*Watcher) Stop Uses

func (m *Watcher) Stop()

Package memory imports 7 packages (graph) and is imported by 6 packages. Updated 2020-06-28. Refresh now. Tools for package owners.