Documentation
¶
Index ¶
Constants ¶
View Source
const ( RestService service = "adapter.internal.RestService" RateLimiterGrpcService service = "adapter.internal.RateLimiterGrpcService" CommonEnforcerGrpcService service = "adapter.internal.CommonEnforcerGrpcService" )
Service components to be set health status
Variables ¶
This section is empty.
Functions ¶
func SetControlPlaneBrokerStatus ¶
func SetControlPlaneBrokerStatus(status bool)
SetControlPlaneBrokerStatus sets the given status to the internal channel controlPlaneBrokerStatusChan
func SetControlPlaneRestAPIStatus ¶
func SetControlPlaneRestAPIStatus(status bool)
SetControlPlaneRestAPIStatus sets the given status to the internal channel controlPlaneRestAPIStatusChan
func WaitForControlPlane ¶
func WaitForControlPlane()
WaitForControlPlane sleep the current go routine until control-plane starts
Types ¶
type Server ¶
type Server struct {
healthservice.UnimplementedHealthServer
}
Server represents the Health GRPC server
func (Server) Check ¶
func (s Server) Check(ctx context.Context, request *healthservice.HealthCheckRequest) (*healthservice.HealthCheckResponse, error)
Check responds the health check client with health status of the Adapter
Click to show internal directories.
Click to hide internal directories.