checkers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct {
	// contains filtered or unexported fields
}

HealthChecker is a heals checker.

func NewHealthChecker

func NewHealthChecker(ctx context.Context, client ...httpClient) *HealthChecker

NewHealthChecker creates heals checker.

func (*HealthChecker) Check

func (c *HealthChecker) Check(port uint16) error

Check application using liveness probe.

type LiveChecker

type LiveChecker struct{}

LiveChecker is a liveness checker.

func NewLiveChecker

func NewLiveChecker() *LiveChecker

NewLiveChecker creates liveness checker.

func (*LiveChecker) Check

func (*LiveChecker) Check() error

Check application is alive?

type ReadyChecker

type ReadyChecker struct {
	// contains filtered or unexported fields
}

ReadyChecker is a readiness checker.

func NewReadyChecker

func NewReadyChecker(ctx context.Context, rdb *redis.Client) *ReadyChecker

NewReadyChecker creates readiness checker.

func (*ReadyChecker) Check

func (c *ReadyChecker) Check() error

Check application is ready for incoming requests processing?

Jump to

Keyboard shortcuts

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