SessionRedis

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: 14 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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