BasicAuth

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthType

type BasicAuthType struct {
	Next     http.Handler //
	Paths    []string     //
	AuthFile string       // .htaccess
	Realm    string       //
	LineNo   int
	// contains filtered or unexported fields
}

BasicAuthType kesps the current configuration for the basic-auth middleware

func (*BasicAuthType) CheckForLoad

func (hdlr *BasicAuthType) CheckForLoad()

CheckForLoad verifies that the data has been loaded -- It also handles locking to that in race conditions only one load occures.

func (*BasicAuthType) InitializeWithConfigData

func (hdlr *BasicAuthType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*BasicAuthType) LoadFile

func (hdlr *BasicAuthType) LoadFile()

LoadFile loads the data fro the .htaccess file

func (*BasicAuthType) PreValidate

func (hdlr *BasicAuthType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*BasicAuthType) ServeHTTP

func (hdlr *BasicAuthType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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