health

package
v0.0.0-...-845418e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const HEALTHCHECK_BUFFER_SIZE = 1000
View Source
const HEALTHCHECK_STATS_CONNECT_TIMEOUT = time.Second * 3
View Source
const HEALTHCHECK_STATS_REQUEST_TIMEOUT = time.Second * 3

Variables

This section is empty.

Functions

func Check

func Check()

Types

type CategoryInfo

type CategoryInfo struct {
	Count    uint64 `json:"count"`
	OldestTs int64  `json:"oldest_ts"`
}

type ClientResult

type ClientResult struct {
	Undelivered map[string]uint64 `json:"undelivered"`
	BacklogSize int               `json:"backlog_size"`
	Errors      []string          `json:"errors"`
}

type Result

type Result struct {
	IsRunning bool         `json:"is_running"`
	Client    ClientResult `json:"client"`
	Server    ServerResult `json:"server"`
}

type ServerResult

type ServerResult struct {
	Categories map[string]CategoryInfo `json:"categories"`
	Errors     []string                `json:"errors"`
}

Jump to

Keyboard shortcuts

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