backend

package
v0.0.0-...-44f170f Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOptions

func ParseOptions(config string) (map[string]string, error)

func Register

func Register(name string, f Constructor) error

Types

type Backend

type Backend interface {
	// Authenticate checks the request against the backend.
	// If the error parameter is not nil then a communications error must have occurred
	Authenticate(r *http.Request) (bool, error)
}

Backend is a reauth authentication extension

type Constructor

type Constructor func(config string) (Backend, error)

func Lookup

func Lookup(name string) (Constructor, error)

Jump to

Keyboard shortcuts

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