api

package
v0.0.0-...-0cfb223 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = ""

Version stores the version of the current build

Functions

This section is empty.

Types

type Health

type Health struct {
	OK      bool     `json:"ok"`
	Service *Service `json:"service"`
}

Health represents the object of the health root endpoint

func GetHealth

func GetHealth() *Health

GetHealth performs a self-check and returns the result

type Index

type Index struct {
	Version string `json:"version" bson:"version"`
}

Index represents the object of the API root endpoint

func GetIndex

func GetIndex() (*Index, error)

GetIndex returns the data of the API root endpoint

type Service

type Service struct {
	Database health.Status `json:"database"`
}

Service holds all services with their respective status

Jump to

Keyboard shortcuts

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