rest

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusSuccess    = "success"
	StatusProcessing = "processing"
	StatusError      = "error"
)

Variables

This section is empty.

Functions

func DefaultHeaders

func DefaultHeaders(w http.ResponseWriter)

func GetStatus

func GetStatus(w http.ResponseWriter, r *http.Request)

func GetTrace

func GetTrace(w http.ResponseWriter, r *http.Request)

func HandleFuncs

func HandleFuncs()

func Init

func Init(templatesFS fs.FS)

Types

type Status

type Status struct {
	State          string
	TimestampTitle string
	Timestamp      time.Time
	Names          []string
	LastSetIPs     map[string]string
}

Jump to

Keyboard shortcuts

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