Documentation ¶
Index ¶
Constants ¶
View Source
const ( PageContext = ContextKey("goradd.page") BufferContext = ContextKey("goradd.buf") WebSocketContext = ContextKey("goradd.ws") )
View Source
const ( SessionLanguage = "goradd.lang" SessionSalt = "goradd.salt" SessionCsrf = "goradd.csrf" SessionAuthTime = "goradd.auth.time" SessionAuthSuccess = "goradd.auth.success" )
Default session values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is the type used for keys of the values we are storing in the context object that is passed around the application. Goradd private contexts will start with "goradd.". You are free to use this type to save your own information in the context, but do not start your key names with "goradd." to avoid potential key collisions.
Click to show internal directories.
Click to hide internal directories.