goradd

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

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