middle

package
v0.0.0-...-22d4692 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRFProtect

func CSRFProtect(next http.Handler) http.Handler

func ConfigCtx

func ConfigCtx(config *config.Config) func(http.Handler) http.Handler

func Database

func Database(c *config.Config) (func(http.Handler) http.Handler, error)

func GetBaseCtx

func GetBaseCtx(r *http.Request) map[string]interface{}

func GetConfig

func GetConfig(r *http.Request) *config.Config

func GetDB

func GetDB(r *http.Request) *buntdb.DB

func GetSession

func GetSession(r *http.Request) session.Session

func IsAdminSession

func IsAdminSession(sess session.Session) bool

func IsModSession

func IsModSession(sess session.Session) bool

func LimitSize

func LimitSize(c *config.Config) func(http.Handler) http.Handler

func SetupSessionManager

func SetupSessionManager(c *config.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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