session

package
v0.0.0-...-8644ba8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePath

func HandlePath(paths spec.Paths, ar security.AccountReader, rr security.RoleReader)

HandlePath registers http.HandleFunc and spec.Operation for paths

func HandlerFunc

func HandlerFunc(f http.HandlerFunc) http.HandlerFunc

HandlerFunc checks session cookie and CSRF header

func StoreMem

func StoreMem()

StoreMem development use only. Default user admin:nimda

func StoreMongo

func StoreMongo(session *mgo.Session)

StoreMongo initializes store, call once

func StorePostgres

func StorePostgres(db *sql.DB)

StorePostgres initializes store, call once

func StoreRedis

func StoreRedis(c redis.Conn)

StoreRedis initializes store, call once

Types

This section is empty.

Jump to

Keyboard shortcuts

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