Documentation ¶
Index ¶
- func ActionToEventType(action string) regpb.EventType
- type Registry
- func (r *Registry) Deregister(ctx context.Context, req *regpb.Service, rsp *regsvcpb.EmptyResponse) error
- func (r *Registry) GetService(ctx context.Context, req *regsvcpb.GetRequest, rsp *regsvcpb.GetResponse) error
- func (r *Registry) ListServices(ctx context.Context, req *regsvcpb.ListRequest, rsp *regsvcpb.ListResponse) error
- func (r *Registry) Register(ctx context.Context, req *regpb.Service, rsp *regsvcpb.EmptyResponse) error
- func (r *Registry) Watch(ctx context.Context, req *regsvcpb.WatchRequest, ...) 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 vine.Event // internal registry Registry registry.Registry // auth to verify clients Auth auth.Auth }
func (*Registry) Deregister ¶
func (r *Registry) Deregister(ctx context.Context, req *regpb.Service, rsp *regsvcpb.EmptyResponse) error
Deregister a service
func (*Registry) GetService ¶
func (r *Registry) GetService(ctx context.Context, req *regsvcpb.GetRequest, rsp *regsvcpb.GetResponse) error
GetService from the registry with the name requested
func (*Registry) ListServices ¶
func (r *Registry) ListServices(ctx context.Context, req *regsvcpb.ListRequest, rsp *regsvcpb.ListResponse) error
ListServices returns all the services
func (*Registry) Register ¶
func (r *Registry) Register(ctx context.Context, req *regpb.Service, rsp *regsvcpb.EmptyResponse) error
Register a service
func (*Registry) Watch ¶
func (r *Registry) Watch(ctx context.Context, req *regsvcpb.WatchRequest, rsp regsvcpb.Registry_WatchStream) error
Watch a service for changes
Click to show internal directories.
Click to hide internal directories.