services

package
v0.0.0-...-f6f40c8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessKey key = 0
)

Variables

View Source
var (
	Name  = "_alloydev"
	Store = sessions.NewCookieStore(
		[]byte(envy.Get("HASH_KEY", string(securecookie.GenerateRandomKey(64)))),
		[]byte(envy.Get("BLOCK_KEY", string(securecookie.GenerateRandomKey(32)))),
	)
)
View Source
var DB *sqlx.DB

Functions

func EmptySession

func EmptySession(sess *sessions.Session)

func InitDB

func InitDB() *sqlx.DB

InitDB sets up the database

func Session

func Session(r *http.Request) *sessions.Session

Types

This section is empty.

Jump to

Keyboard shortcuts

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