basicauth

package
v0.3.29 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleDirective = "basic_auth"

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Users map[string]string
}

func New

func New() *BasicAuth

func (*BasicAuth) Call

func (t *BasicAuth) Call(command conf.Command) error

func (*BasicAuth) CallBlock

func (t *BasicAuth) CallBlock(command conf.Command) (conf.Block, error)

func (*BasicAuth) Clone

func (t *BasicAuth) Clone() prifma.Module

func (*BasicAuth) GetDirective

func (t *BasicAuth) GetDirective() string

func (*BasicAuth) HandleRequest

func (*BasicAuth) LoadHtpasswdFile

func (t *BasicAuth) LoadHtpasswdFile(filename string) error

func (*BasicAuth) Off

func (t *BasicAuth) Off() error

type ResponseRequireAuth

type ResponseRequireAuth struct {
	Request *http.Request
}

func NewResponseRequireAuth

func NewResponseRequireAuth(req *http.Request) *ResponseRequireAuth

func (*ResponseRequireAuth) GetCode

func (t *ResponseRequireAuth) GetCode() int

func (*ResponseRequireAuth) GetLAddr

func (t *ResponseRequireAuth) GetLAddr() net.Addr

func (*ResponseRequireAuth) GetRAddr

func (t *ResponseRequireAuth) GetRAddr() net.Addr

func (*ResponseRequireAuth) Write

Jump to

Keyboard shortcuts

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