Documentation ¶
Index ¶
- func GetConn(serviceAddr string) (*grpc.ClientConn, error)
- func RegisterGrpc(serviceRegisterAddr string, server *grpc.Server, port int, ip string, ...) error
- type HealthImpl
- func (h *HealthImpl) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (h *HealthImpl) OffLine(reason string)
- func (h *HealthImpl) OnLine(reason string)
- func (h *HealthImpl) Watch(*grpc_health_v1.HealthCheckRequest, grpc_health_v1.Health_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthImpl ¶ added in v0.0.7
type HealthImpl struct { Status grpc_health_v1.HealthCheckResponse_ServingStatus Reason string }
func (*HealthImpl) Check ¶ added in v0.0.7
func (h *HealthImpl) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthImpl) OffLine ¶ added in v0.0.7
func (h *HealthImpl) OffLine(reason string)
func (*HealthImpl) OnLine ¶ added in v0.0.7
func (h *HealthImpl) OnLine(reason string)
func (*HealthImpl) Watch ¶ added in v0.0.7
func (h *HealthImpl) Watch(*grpc_health_v1.HealthCheckRequest, grpc_health_v1.Health_WatchServer) error
Click to show internal directories.
Click to hide internal directories.