web

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(validator *validator.Validator) http.Handler

func NewAdmin

func NewAdmin(storage Storage) http.Handler

Types

type Storage

type Storage interface {
	token.Storage
	tokens.Storage
}

Directories

Path Synopsis
controllers

Jump to

Keyboard shortcuts

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