api

package
v0.0.0-...-57d350a Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(c echo.Context) error

Health is used to determine if Caesium is healthy. The response also includes the uptime.

func Start

func Start() error

Start launches Caesium's API.

Types

type HealthResponse

type HealthResponse struct {
	Status Status        `json:"status"`
	Uptime time.Duration `json:"uptime"`
}

HealthResponse defines the data the Health REST endpoint returns.

type Status

type Status string

Status enumerates the health statues of Caesium.

const (
	// Healthy implies Caesium is having no major issues.
	Healthy Status = "healthy"
)

Directories

Path Synopsis
gql
rest
v1

Jump to

Keyboard shortcuts

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