Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConflictCheckerName = errors.New("health checker names conflict") ErrCheckFailed = errors.New("health check failed") )
Functions ¶
func NewHandler ¶
func NewHandler(checkers ...Checker) jin.HandlerFunc
func RegisterHealthChecker ¶
Types ¶
type Status ¶
func (*Status) Each ¶
func (s *Status) Each(f func(string, StatusCode))
func (*Status) Set ¶
func (s *Status) Set(k string, v StatusCode)
type StatusCode ¶
type StatusCode int
const ( StatusOK StatusCode = iota StatusExcluded StatusError )
Click to show internal directories.
Click to hide internal directories.