web

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLHeader           = `X-Forwarded-Uri`
	TokenHeader         = `X-Token`
	HostHeader          = "X-Forwarded-Host"
	TokenQuery          = `token`
	AuthUserHeader      = `X-User`
	AuthTokenHintHeader = `X-Token-Hint` //nolint:gosec
)

Variables

This section is empty.

Functions

func Assets added in v1.2.0

func Assets() fs.FS

func AuthHandler

func AuthHandler(state *cache.Cache, accessLog chan<- Hit) http.Handler

Types

type Hit added in v1.2.0

type Hit struct {
	Time time.Time
	ID   int
}

Jump to

Keyboard shortcuts

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