Documentation ¶
Index ¶
- func BuildHTTPObjectIDKey(w http.ResponseWriter, r *http.Request)
- func BuildSecureKeys(hash, block, cookie string)
- func GenerateUniqueID() string
- func GenerateUniqueStrID() string
- func GetSessionID(key string) bool
- func ReadCookieHandler(w http.ResponseWriter, r *http.Request)
- func SetCookieHandler(w http.ResponseWriter, r *http.Request)
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 GetSessionID ¶
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.
Click to show internal directories.
Click to hide internal directories.