handlers

package
v0.0.0-...-75b0795 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultUserHeader           = "X-Forwarded-User"
	DefaultGroupHeader          = "X-Forwarded-Groups"
	DefaultGroupHeaderDelimiter = ";"
)

Default headers used to determine the currently authenticated user and their groups.

Variables

This section is empty.

Functions

func Content

func Content(c io.ReadSeeker, filename string) http.HandlerFunc

Content serves the supplied content at the supplied path.

func NotImplemented

func NotImplemented() http.HandlerFunc

NotImplemented always returns HTTP 501

func Ping

func Ping() http.HandlerFunc

Ping always returns HTTP 200.

func Run

func Run(fn func()) http.HandlerFunc

Run the provided function in a goroutine.

Types

type AuthHeaders

type AuthHeaders struct {
	User  string // The authenticated user.
	Group string // The authenticated user's groups.

	GroupDelimiter string // The delimiter of the list of groups.
}

AuthHeaders from which the authenticated user and their groups are extracted.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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