health

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RobotsHandler

func RobotsHandler(ctx context.Context) http.Handler

func StatusHandler

func StatusHandler(ctx context.Context) http.Handler

Types

type GitStatus

type GitStatus struct {
	Hash string `json:"hash,omitempty"`
}

type StatusResponse

type StatusResponse struct {
	ServerName string    `json:"server_name,omitempty"`
	Version    string    `json:"version"`
	Tag        string    `json:"tag"`
	Name       string    `json:"name"`
	Git        GitStatus `json:"git"`
}

func MakeStatusResponse

func MakeStatusResponse(ctx context.Context) (sr *StatusResponse, err error)

Jump to

Keyboard shortcuts

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