uptime

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Poller = period.NewPoller("uptime", getStatuses, aggregateStatuses)

Functions

This section is empty.

Types

type Aggregated

type Aggregated []map[string]any

func (Aggregated) MarshalJSON

func (result Aggregated) MarshalJSON() ([]byte, error)

type RouteStatuses

type RouteStatuses map[string][]*Status

type Status

type Status struct {
	Status    health.Status `json:"status"`
	Latency   int64         `json:"latency"`
	Timestamp int64         `json:"timestamp"`
}

func (*Status) MarshalJSON added in v0.11.0

func (s *Status) MarshalJSON() ([]byte, error)

type StatusByAlias

type StatusByAlias struct {
	Map       map[string]*routes.HealthInfoRaw `json:"statuses"`
	Timestamp int64                            `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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