server

package
v0.0.0-...-b6dd5f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package server provides the server for the service registry.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL