Documentation ¶
Index ¶
- type SessionRedis
- func (hdlr *SessionRedis) GetTrxCookie(req *http.Request) (id string, ses_id_found bool)
- func (hdlr *SessionRedis) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *SessionRedis) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *SessionRedis) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRedis ¶
type SessionRedis struct { Next http.Handler // Paths []string // -- Path that will pull out non-auth session info RedisSessionPrefix string // -- Session storage path in Redis CookieName string // Name of the cookie that is used to lookup the session LineNo int // // contains filtered or unexported fields }
func NewSessionServer ¶
func NewSessionServer(n http.Handler, p, q []string, redis_prefix, realm string) *SessionRedis
func (*SessionRedis) GetTrxCookie ¶
func (hdlr *SessionRedis) GetTrxCookie(req *http.Request) (id string, ses_id_found bool)
func (*SessionRedis) InitializeWithConfigData ¶
func (hdlr *SessionRedis) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*SessionRedis) PreValidate ¶
func (hdlr *SessionRedis) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*SessionRedis) ServeHTTP ¶
func (hdlr *SessionRedis) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.