middleware

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(next http.Handler) http.Handler

Auth authenticates the admin session.

func GetUser

func GetUser(r *http.Request) *model.User

GetUser returns the signed in user for the request.

func IsAdmin

func IsAdmin(r *http.Request) bool

IsAdmin returns whether the request is made by the administrator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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