middleware

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSession      = errors.New("no session found")
	ErrInvalidSession = errors.New("invalid session")
)

Functions

func Auth

func Auth() gin.HandlerFunc

func Cors

func Cors(cfg *config.Config) gin.HandlerFunc

func GetSessionFromHeader

func GetSessionFromHeader(c *gin.Context) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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