ready

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Dependencies
}

Checker checks if the database connection is up and running.

func NewReadyCheckProvider

func NewReadyCheckProvider(deps Dependencies) *Checker

NewReadyCheckProvider returns ready if the database connection is established.

func (*Checker) Ready

func (c *Checker) Ready(ctx context.Context) bool

Ready checks if krok is ready to serve requests.

type Dependencies

type Dependencies struct {
	Logger    zerolog.Logger
	Connector *livestore.Connector
}

Dependencies defines the dependencies for the plugin provider.

Jump to

Keyboard shortcuts

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