session

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustAdmin

func MustAdmin() func(next http.Handler) http.Handler

MustAdmin makes sure there is an authenticated user set and she is admin

func MustUser

func MustUser() func(next http.Handler) http.Handler

MustUser makes sure there is an authenticated user set

func SetCSRF

func SetCSRF() func(next http.Handler) http.Handler

SetCSRF sets the X-CSRF-TOKEN header with a signed token to prevent CSRF

func SetUser

func SetUser() func(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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