web

package
v0.0.0-...-31318cc Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin(a *API, w http.ResponseWriter, r *http.Request)

Admin is used to respond to requests on the admin endpoint

func Auth

func Auth(a *API, w http.ResponseWriter, r *http.Request)

Auth responds to nginx auth requests

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(_rg *rg.RG, _handler httpHandler, m *metrics.Gatherer) *API

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StateResult

type StateResult struct {
	Project string        `json:"project"`
	IP      string        `json:"ip"`
	TTL     time.Duration `json:"ttl"`
	Access  time.Time     `json:"access"`
}

StateResult wraps all data about a state value

Jump to

Keyboard shortcuts

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