Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConnection = errors.New("connection to redispack has not been established")
Errors
View Source
var Redis_Pool *redis.Pool
Functions ¶
func Connect ¶
func Connect(options SessionOptions) error
Connect to the Redis server we'll be using for session storage.
func HasSession ¶
HasSession lets you check an incoming request for an existing session.
func Start_session ¶
func Start_session(w http.ResponseWriter, r *http.Request) error
Types ¶
type Session ¶
type Session struct { sync.Mutex ID string `json:"sessionId"` Values map[string]interface{} `json:"values"` }
var Gsession *Session
func Open ¶
Open will either get a session from an existing ID or if the cookie cannot be found a new session will be returned
type SessionOptions ¶
Click to show internal directories.
Click to hide internal directories.