Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserId ¶
GetUserId queries the database to turn an `auth_token` into a `user_id'. Called from server layer and used to compare the passed user_id with the tokens user_id.
func IsAuthorized ¶
func IsAuthorized(www http.ResponseWriter, req *http.Request) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.