Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContentTypeHeader is the health check request type header. ContentTypeHeader = "Content-Type" // ContentTypeText is the health check request type text. ContentTypeText = "text/plain" // ContentTypeJSON is another health check request type text, which response contains more info. ContentTypeJSON = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func UnRegister ¶
func UnRegister(role string)
Types ¶
type GetComponentStatesInterface ¶
type GetComponentStatesInterface interface { // GetComponentStates returns the states of component. GetComponentStates(ctx context.Context, request *milvuspb.GetComponentStatesRequest) (*milvuspb.ComponentStates, error) }
GetComponentStatesInterface defines the interface that get states from component.
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
func Handler ¶
func Handler() *HealthHandler
func (*HealthHandler) ServeHTTP ¶
func (handler *HealthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HealthResponse ¶
type HealthResponse struct { State string `json:"state"` Detail []*IndicatorState `json:"detail"` }
type IndicatorState ¶
Click to show internal directories.
Click to hide internal directories.