Documentation ¶
Index ¶
- func ActionToEventType(action string) registry.EventType
- type Registry
- func (r *Registry) Deregister(ctx context.Context, req *pb.Service, rsp *pb.EmptyResponse) error
- func (r *Registry) GetService(ctx context.Context, req *pb.GetRequest, rsp *pb.GetResponse) error
- func (r *Registry) ListServices(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
- func (r *Registry) Register(ctx context.Context, req *pb.Service, rsp *pb.EmptyResponse) error
- func (r *Registry) Watch(ctx context.Context, req *pb.WatchRequest, rsp pb.Registry_WatchStream) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionToEventType ¶
Types ¶
type Registry ¶
type Registry struct { // service id Id string // the publisher Publisher micro.Publisher // internal registry Registry registry.Registry }
func (*Registry) Deregister ¶
func (*Registry) GetService ¶
func (r *Registry) GetService(ctx context.Context, req *pb.GetRequest, rsp *pb.GetResponse) error
func (*Registry) ListServices ¶
func (r *Registry) ListServices(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
func (*Registry) Watch ¶
func (r *Registry) Watch(ctx context.Context, req *pb.WatchRequest, rsp pb.Registry_WatchStream) error
Click to show internal directories.
Click to hide internal directories.