njs_status

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 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 Status

type Status interface {
	Register(prefix string, register njs_router.RegisterRouter)
	AddPartner(name, msgOK, msgKO, release, build string, WarnIfError bool, health func() error)
	AddVersionPartner(vers njs_version.Version, msgOK, msgKO string, WarnIfError bool, health func() error)
	Get(c *gin.Context)
}

func NewStatus

func NewStatus(name, msgOK, msgKO, release, build string, health func() error, Header func(c *gin.Context)) Status

func NewVersionStatus

func NewVersionStatus(vers njs_version.Version, msgOK, msgKO string, health func() error, Header func(c *gin.Context)) Status

type StatusItemResponse

type StatusItemResponse struct {
	Name      string
	Status    string
	Message   string
	Release   string
	HashBuild string
}

type StatusResponse

type StatusResponse struct {
	StatusItemResponse
	Partner []StatusItemResponse
}

Jump to

Keyboard shortcuts

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