Documentation ¶
Index ¶
- Constants
- type BasicAuthRedis
- func (hdlr *BasicAuthRedis) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *BasicAuthRedis) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *BasicAuthRedis) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const NIterations = 5000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthRedis ¶
type BasicAuthRedis struct { Next http.Handler // Paths []string // Realm string // RedisPrefix string // HashUsername bool // If true then the email address is hashed before retreval HashUsernameSalt string // Optional - must be application wide salt - not the same as per-user salt that is generated. LineNo int // // contains filtered or unexported fields }
func NewBasicAuthServer ¶
func NewBasicAuthServer(n http.Handler, p []string, redis_prefix, realm string) *BasicAuthRedis
func (*BasicAuthRedis) InitializeWithConfigData ¶
func (hdlr *BasicAuthRedis) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*BasicAuthRedis) PreValidate ¶
func (hdlr *BasicAuthRedis) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*BasicAuthRedis) ServeHTTP ¶
func (hdlr *BasicAuthRedis) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.