15 lines
341 B
Go
15 lines
341 B
Go
// Package contexts provides utilities for loading and extracting structs from contexts
|
|
package contexts
|
|
|
|
type Key string
|
|
|
|
func (c Key) String() string {
|
|
return "oslstats context key " + string(c)
|
|
}
|
|
|
|
var (
|
|
DevModeKey Key = Key("devmode")
|
|
PermissionCacheKey Key = Key("permissions")
|
|
PreviewRoleKey Key = Key("preview-role")
|
|
)
|