model

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checks

type Checks map[string][]ComponentStatus

type ComponentStatus

type ComponentStatus struct {
	Status Status    `json:"status"`
	Time   time.Time `json:"time"`
}

type ReadyResp

type ReadyResp struct {
	Status Status `json:"status"`
	Checks Checks `json:"checks"`
}

type Status

type Status string
const (
	StatusPass Status = "pass"
	StatusFail Status = "fail"
)

func (Status) ToHTTPStatus

func (s Status) ToHTTPStatus() int

Jump to

Keyboard shortcuts

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