Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func RegisterBuilder ¶
func RegisterBuilder()
func RegisterService ¶
func RegisterService(ca string, cs *ConsulService)
Types ¶
type ConsulService ¶
type HealthImpl ¶
type HealthImpl struct{}
func (*HealthImpl) Check ¶
func (h *HealthImpl) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
Check implements the health check interface, which directly returns to health status. There are also more complex health check strategies, such as returning based on server load.
func (*HealthImpl) Watch ¶
func (h *HealthImpl) Watch(req *grpc_health_v1.HealthCheckRequest, w grpc_health_v1.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.