Documentation
¶
Overview ¶
Package server provides the server for the service registry.
Index ¶
- type ServiceRegistry
- func (srx *ServiceRegistry) DiscoverService(_ context.Context, _ *registry.DiscoverServiceRequest) (*registry.DiscoverServiceResponse, error)
- func (srx *ServiceRegistry) Heartbeat(_ context.Context, _ *registry.HeartbeatRequest) (*registry.HeartbeatResponse, error)
- func (srx *ServiceRegistry) RegisterService(_ context.Context, _ *registry.RegisterServiceRequest) (*registry.RegisterServiceResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceRegistry ¶
type ServiceRegistry struct {
registry.UnimplementedServiceRegistryServiceServer
}
ServiceRegistry implements the ServiceRegistryService.
func (*ServiceRegistry) DiscoverService ¶
func (srx *ServiceRegistry) DiscoverService(_ context.Context, _ *registry.DiscoverServiceRequest) (*registry.DiscoverServiceResponse, error)
DiscoverService implements the DiscoverService method of the ServiceRegistryService.
func (*ServiceRegistry) Heartbeat ¶
func (srx *ServiceRegistry) Heartbeat(_ context.Context, _ *registry.HeartbeatRequest) (*registry.HeartbeatResponse, error)
Heartbeat implements the Heartbeat method of the ServiceRegistryService.
func (*ServiceRegistry) RegisterService ¶
func (srx *ServiceRegistry) RegisterService(_ context.Context, _ *registry.RegisterServiceRequest) (*registry.RegisterServiceResponse, error)
RegisterService implements the RegisterService method of the ServiceRegistryService.
Click to show internal directories.
Click to hide internal directories.