Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenCache = make(map[string]string)
TokenCache is an in-memory cache of user tokens
Functions ¶
func Authenticate ¶
Authenticate will authenticate a login request
func LoadTokenCache ¶
func LoadTokenCache() error
LoadTokenCache reads the file contents into memory (why?)
func LookupToken ¶
LookupToken looks up a token from in-memory token cache
func PlayerUUIDLookup ¶
PlayerUUIDLookup looks up a UUID for a playerName
func RemoveToken ¶
func RemoveToken(player string)
RemoveToken will erase a name/token pair from the in-memory copy of the token cache
func VerifyToken ¶
VerifyToken checks the playerName and token against the token cache
Types ¶
Click to show internal directories.
Click to hide internal directories.