Documentation
¶
Index ¶
Constants ¶
View Source
const AuthKey = "auth"
View Source
const CountKey = "count"
Variables ¶
View Source
var Private = ginx.V{Key: AuthKey, Val: 0}
Private metadata means that api needs to be user authenticated
View Source
var Public = ginx.V{Key: AuthKey, Val: 1}
Public means that api no need to be authenticated
Functions ¶
func CountLimit ¶
CountLimit metadata means that api need to rate limit by number of requests
func GetTokenInfo ¶
GetTokenInfo returns token information from context
func MustGetTokenInfo ¶
MustGetTokenInfo returns token information from context, panic if err != nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.