Documentation
¶
Index ¶
- func AddListener_DeAuth(fn func(string))
- func Auth(w http.ResponseWriter, r *http.Request, vals map[string]string) (err error)
- func DeAuth(w http.ResponseWriter, r *http.Request) (err error)
- func GetAuthdId(r *http.Request) string
- func GetSessionValues(r *http.Request) (info map[string]interface{}, err error)
- func Initialize(cookieSessName, cookieStoreId, cookiePath, cookieDomain, cookieMaxAge string, ...) (err error)
- func IsAuthd(r *http.Request) bool
- func Values_Array_ItemPush(w http.ResponseWriter, r *http.Request, key string, item interface{})
- type Member
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeAuth ¶
func DeAuth(w http.ResponseWriter, r *http.Request) (err error)
De-authenticates user.
func GetAuthdId ¶
Retrieves authentication ID from the session. Returns empty string if not found.
func GetSessionValues ¶
Retrieve existing session.
func Initialize ¶
func Initialize(cookieSessName, cookieStoreId, cookiePath, cookieDomain, cookieMaxAge string, onPanic func(string, string, ...interface{})) (err error)
Initializes authentication mechanism.
func Values_Array_ItemPush ¶
func Values_Array_ItemPush(w http.ResponseWriter, r *http.Request, key string, item interface{})
XXX Experimental, not used. Adds item to an array of items in session.
Types ¶
Click to show internal directories.
Click to hide internal directories.