Documentation ¶
Index ¶
Constants ¶
View Source
const ( ENV = "APICON_SERVICE" ApiconAuthHeader = "X-Apicon-Auth" ApiconUserIDHeader = "X-Apicon-User-ID" ApiconUserNameHeader = "X-Apicon-User-Name" ApiconUserEmailHeader = "X-Apicon-User-Email" ApiconUserNicknameHeader = "X-Apicon-User-Nickname" ApiconUserKeyHeader = "X-Apicon-Key" UserIPHeader = "X-Real-Ip" )
Variables ¶
Functions ¶
func GetUser ¶
GetUser returns user information from the Gin request context.
func GetUserIP ¶
GetUserIP returns user IP address from the Gin request context.
Types ¶
Click to show internal directories.
Click to hide internal directories.