Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithReadinessHandler ¶
WithReadinessHandler is an option to set a readiness handler for probe server.
Types ¶
type Option ¶
type Option interface {
SetOption(*Server)
}
Option is ued to set probe server's options.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a http server for service probe.
func (*Server) NotReady ¶
func (s *Server) NotReady()
NotReady makes the probe server starts returning failure status on readiness and health endpoint.
func (*Server) Ready ¶
func (s *Server) Ready()
Ready makes the probe server starts returning status on readiness and health endpoint.
Click to show internal directories.
Click to hide internal directories.