Documentation ¶
Overview ¶
Package health xxx
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSchemeInValid invalid scheme ErrSchemeInValid = errors.New("scheme invalid, should be http/https") // ErrHealthConfigNotInited show HealthConfig not inited ErrHealthConfigNotInited = errors.New("healthConfig not inited") )
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
HealthCheck is interface for check addr:port health nolint
func NewHealthConfig ¶
func NewHealthConfig(scheme string, path string) (HealthCheck, error)
NewHealthConfig init HealthConfig
type HealthConfig ¶
HealthConfig conf immutable schem/path nolint
func (*HealthConfig) IsHTTPAPIHealth ¶
func (hc *HealthConfig) IsHTTPAPIHealth(addr string, port uint32) bool
IsHTTPAPIHealth for check schem://addr:port/Path health
Click to show internal directories.
Click to hide internal directories.