health

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageKey = "storage"
	ApiKey     = "api"
)

Variables

This section is empty.

Functions

func GetHealth

func GetHealth() metric.HealthMeta

func SetHealth

func SetHealth(key string)

func SetMaster

func SetMaster()

func SetSlave

func SetSlave()

func SetUnhealthy

func SetUnhealthy(key string, message interface{})

Types

type BcsHealthIf

type BcsHealthIf struct {
	Code        int             `json:"code"`
	OK          bool            `json:"ok"`
	Data        healthStatus    `json:"data"`
	Message     string          `json:"message"`
	CurrentRole metric.RoleType `json:"currentRole"`
}

healthZ interface

type SubStatus

type SubStatus struct {
	OK      bool   `json:"ok"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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