Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler creates a new HTTP handler using the given state as source of information
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State represents the current health check state
func NewState ¶
NewState creates a new state instance. The initial state is what's specified with the state parameter
func Serve ¶
Serve requests on the specified port. The initial state is what's specified with the state parameter
Click to show internal directories.
Click to hide internal directories.