goradd

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageContext      = ContextKey("goradd.page")
	SessionContext   = ContextKey("goradd.session")
	SqlContext       = ContextKey("goradd.sql")
	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 collissions.

Jump to

Keyboard shortcuts

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