api

package
v0.0.0-...-9c4e0d1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 9 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 Shutdown

func Shutdown() error

func Start

func Start(ctx context.Context) 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

Jump to

Keyboard shortcuts

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