Documentation ¶
Index ¶
- type BasicAuthType
- func (hdlr *BasicAuthType) CheckForLoad()
- func (hdlr *BasicAuthType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *BasicAuthType) LoadFile()
- func (hdlr *BasicAuthType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *BasicAuthType) ServeHTTP(www http.ResponseWriter, req *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.