helper

package
v0.0.0-...-881522d Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextDatabase        = "db"
	ContextCache           = "cache"
	ContextFileStore       = "fileStore"
	ContextUserID          = "userID"
	ContextUserAccessLevel = "userAccessLevel"
)

Context keys that can be used to fetch useful information from a request's context. Context availability depends on the middleware called before a handler.

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(length int) string

Types

type HTTPMessage

type HTTPMessage struct {
	Message string `json:"message"`
}

type SessionData

type SessionData struct {
	UserID      string
	AccessLevel string
}

Jump to

Keyboard shortcuts

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