Documentation
¶
Index ¶
- Constants
- func GetCredentials(req *http.Request) (string, string, string)
- func GetParams(params string) map[string]string
- func GetRedisClient() *redis.Client
- func SplitParams(username string) (string, string)
- func Verify(username, password string) bool
- func VerifySession(result map[string]string) bool
Constants ¶
View Source
const ( ParamSession string = "session" ParamTimeout string = "timeout" ParamLocation string = "country" ParamFallback string = "fallback" )
Variables ¶
This section is empty.
Functions ¶
func GetCredentials ¶
GetCredentials returns the username, password and params from the Proxy-Authorization header
func GetRedisClient ¶
func GetRedisClient() *redis.Client
func SplitParams ¶
SplitParams splits the username and params
func VerifySession ¶
VerifySession verifies the session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.