auth

package
v0.0.0-...-6464992 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminId = "1000"
)

Variables

View Source
var CookieStore *sessions.CookieStore

Functions

func AddCookie

func AddCookie(req *http.Request, resp http.ResponseWriter)

func AuthFilter

func AuthFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

func Decode

func Decode(c string) string

func DelCookie

func DelCookie(req *restful.Request, resp *restful.Response)

func Encode

func Encode(p string) string

func SetSysMagicNumber

func SetSysMagicNumber(m []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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