gophertype/pkg/session/keys.go

13 lines
337 B
Go
Raw Normal View History

2019-11-26 03:55:28 +00:00
package session
// Key is a session context key.
type Key int
// Session key definitions.
const (
SessionKey Key = iota // The request's cookie session object.
UserKey // The request's user data for logged-in user.
StartTimeKey // The start time of the request.
2019-11-27 00:54:02 +00:00
CSRFKey // CSRF token
2019-11-26 03:55:28 +00:00
)