healthcheck

package
v0.0.0-...-2b81ed7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 WithDatabasePingCheckForLiveness

func WithDatabasePingCheckForLiveness(name string, database *sql.DB, timeout time.Duration) ProbeServiceOption

func WithDatabasePingCheckForReadiness

func WithDatabasePingCheckForReadiness(name string, database *sql.DB, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL