health

package
v0.0.1-dev-a64490c Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Module              = "healths"
	RepairingCollection = "repairing"

	AscSort  = `columns: ["_time"], desc: false`
	DescSort = `columns: ["_time"], desc: true`
)

Variables

This section is empty.

Functions

func RepairCollection

func RepairCollection() string

Types

type Check

type Check struct {
	Time   string `json:"time"`
	Status string `json:"status"`
	*Error `json:"error,omitempty"`
}

func (*Check) IsNg

func (h *Check) IsNg() bool

type Error

type Error struct {
	Type        string   `json:"type"`
	Reason      string   `json:"reason"`
	Nodes       []string `json:"nodes"`
	Description string   `json:"description"`
	Details     string   `json:"details"`
	Log         string   `json:"log"`
}

type Report

type Report struct {
	Category string            `json:"category"`
	Service  string            `json:"service"`
	Status   status.Health     `json:"status,omitempty" yaml:"status,omitempty" bson:"status,omitempty"`
	Modules  []services.Module `json:"modules"`
}

Jump to

Keyboard shortcuts

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