authenticator

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	// Authenticate returns a function that wraps the provided handler with
	// authentication capability
	Authenticate(HandlerFunction) HandlerFunction
}

Authenticator is an interface to be implemented by any component capable of authenticating HTTP requests

type HandlerFunction

type HandlerFunction func(http.ResponseWriter, *http.Request)

HandlerFunction is the signature of any function that can handle an HTTP request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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