health

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// Readiness to know when an application is ready to start accepting traffic
	Readiness(c *gin.Context)

	// Liveness to know when to restart an application
	Liveness(c *gin.Context)
}

IHandler declare apis handler's function

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz health.IBiz) (IHandler, error)

CreateIHandler serve caller to create an IHandler

func NewImpl

func NewImpl(logger *zap.Logger, biz health.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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