gophertype/pkg/session/keys.go

12 lines
298 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.
)