security

package
v0.0.0-...-40c35e2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPObjectIDKey

func BuildHTTPObjectIDKey(w http.ResponseWriter, r *http.Request)

BuildHTTPObjectIDKey generate unique bsonObject ID

func BuildSecureKeys

func BuildSecureKeys(hash, block, cookie string)

BuildSecureKeys start building required keys

func GenerateUniqueID

func GenerateUniqueID() string

GenerateUniqueID create unique ID from bsonID

func GenerateUniqueStrID

func GenerateUniqueStrID() string

GenerateUniqueStrID unique string ID

func GetSessionID

func GetSessionID(key string) bool

GetSessionID retrieve from redis if session ID is pressent

func ReadCookieHandler

func ReadCookieHandler(w http.ResponseWriter, r *http.Request)

ReadCookieHandler retrieve user cookie

func SetCookieHandler

func SetCookieHandler(w http.ResponseWriter, r *http.Request)

SetCookieHandler set cookie handler to user

Types

This section is empty.

Jump to

Keyboard shortcuts

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