Documentation ¶
Index ¶
- type ProbeService
- type ProbeServiceOption
- func WithAsyncCheckForLiveness(name string, check healthcheck.Check, interval time.Duration) ProbeServiceOption
- func WithAsyncCheckForReadiness(name string, check healthcheck.Check, interval time.Duration) ProbeServiceOption
- func WithAsyncWithContextCheckForLiveness(name string, ctx context.Context, check healthcheck.Check, ...) ProbeServiceOption
- func WithAsyncWithContextCheckForReadiness(name string, ctx context.Context, check healthcheck.Check, ...) ProbeServiceOption
- func WithDNSResolveCheckForLiveness(name string, host string, timeout time.Duration) ProbeServiceOption
- func WithDNSResolveCheckForReadiness(name string, host string, timeout time.Duration) ProbeServiceOption
- func WithDatabasePingCheckForLiveness(name string, database *sql.DB, timeout time.Duration) ProbeServiceOption
- func WithDatabasePingCheckForReadiness(name string, database *sql.DB, timeout time.Duration) ProbeServiceOption
- func WithGoroutineCountCheckForLiveness(name string, threshold int) ProbeServiceOption
- func WithGoroutineCountCheckForReadiness(name string, threshold int) ProbeServiceOption
- func WithHTTPGetCheckForLiveness(name string, url string, timeout time.Duration) ProbeServiceOption
- func WithHTTPGetCheckForReadiness(name string, url string, timeout time.Duration) ProbeServiceOption
- func WithTCPDialCheckForLiveness(name string, addr string, timeout time.Duration) ProbeServiceOption
- func WithTCPDialCheckForReadiness(name string, addr string, timeout time.Duration) ProbeServiceOption
- func WithTimeoutCheckForLiveness(name string, check healthcheck.Check, timeout time.Duration) ProbeServiceOption
- func WithTimeoutCheckForReadiness(name string, check healthcheck.Check, timeout time.Duration) ProbeServiceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProbeService ¶
type ProbeService struct {
// contains filtered or unexported fields
}
func NewProbeService ¶
func NewProbeService(options ...ProbeServiceOption) *ProbeService
func (*ProbeService) LivenessHandler ¶
func (p *ProbeService) LivenessHandler() http.Handler
func (*ProbeService) ReadinessHandler ¶
func (p *ProbeService) ReadinessHandler() http.Handler
type ProbeServiceOption ¶
type ProbeServiceOption func(*ProbeService)
func WithAsyncCheckForLiveness ¶
func WithAsyncCheckForLiveness(name string, check healthcheck.Check, interval time.Duration) ProbeServiceOption
func WithAsyncCheckForReadiness ¶
func WithAsyncCheckForReadiness(name string, check healthcheck.Check, interval time.Duration) ProbeServiceOption
func WithAsyncWithContextCheckForLiveness ¶
func WithAsyncWithContextCheckForLiveness(name string, ctx context.Context, check healthcheck.Check, interval time.Duration) ProbeServiceOption
func WithAsyncWithContextCheckForReadiness ¶
func WithAsyncWithContextCheckForReadiness(name string, ctx context.Context, check healthcheck.Check, interval time.Duration) ProbeServiceOption
func WithDNSResolveCheckForLiveness ¶
func WithDNSResolveCheckForLiveness(name string, host string, timeout time.Duration) ProbeServiceOption
func WithDNSResolveCheckForReadiness ¶
func WithDNSResolveCheckForReadiness(name string, host string, timeout time.Duration) ProbeServiceOption
func WithGoroutineCountCheckForLiveness ¶
func WithGoroutineCountCheckForLiveness(name string, threshold int) ProbeServiceOption
func WithGoroutineCountCheckForReadiness ¶
func WithGoroutineCountCheckForReadiness(name string, threshold int) ProbeServiceOption
func WithHTTPGetCheckForLiveness ¶
func WithHTTPGetCheckForLiveness(name string, url string, timeout time.Duration) ProbeServiceOption
func WithHTTPGetCheckForReadiness ¶
func WithHTTPGetCheckForReadiness(name string, url string, timeout time.Duration) ProbeServiceOption
func WithTCPDialCheckForLiveness ¶
func WithTCPDialCheckForLiveness(name string, addr string, timeout time.Duration) ProbeServiceOption
func WithTCPDialCheckForReadiness ¶
func WithTCPDialCheckForReadiness(name string, addr string, timeout time.Duration) ProbeServiceOption
func WithTimeoutCheckForLiveness ¶
func WithTimeoutCheckForLiveness(name string, check healthcheck.Check, timeout time.Duration) ProbeServiceOption
func WithTimeoutCheckForReadiness ¶
func WithTimeoutCheckForReadiness(name string, check healthcheck.Check, timeout time.Duration) ProbeServiceOption
Click to show internal directories.
Click to hide internal directories.