basic

package
v0.0.0-...-31c8788 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FailureMode = "httpbasic"

FailureMode name

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	Realm string `json:"realm,omitempty"`
}

func NewDriver

func NewDriver() *Basic

NewDriver returns an instance of Basic

func (Basic) Handle

func (h Basic) Handle(w http.ResponseWriter, r *http.Request) error

Handle the failure

func (Basic) Validate

func (h Basic) Validate() error

Validate verifies that this module is functional with the given configuration

Jump to

Keyboard shortcuts

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