Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶ added in v1.4.0
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthChecker ¶
func NewHealthChecker(grpcHealthServer *health.Server, name string) *HealthChecker
func (*HealthChecker) Fail ¶ added in v1.4.0
func (hc *HealthChecker) Fail()
func (*HealthChecker) ServeHTTP ¶ added in v1.4.0
func (hc *HealthChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HealthChecker) Server ¶ added in v1.4.0
func (hc *HealthChecker) Server() *health.Server
type Server ¶
type Server interface {
/**
* Starts the HTTP and gRPC servers. This should be done after
* all endpoints have been registered through 'AddHttpEndpoint'
* and 'GrpcServer'.
*/
Start()
/**
* Returns the root of the stats tree for the server
*/
Scope() stats.Scope
/**
* Add an HTTP endpoint to the local debug port.
*/
AddDebugHttpEndpoint(path string, help string, handler http.HandlerFunc)
/**
* Returns the embedded gRPC server to be used for registering gRPC endpoints.
*/
GrpcServer() *grpc.Server
/**
* Returns the runtime configuration for the server.
*/
Runtime() loader.IFace
}
Click to show internal directories.
Click to hide internal directories.