Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeToken ¶
Encode a token into a string, format: userid.expires.signature.
func ReadConfiguration ¶
func ReadConfiguration() error
Read the configuration file config.toml and store result in global Conf
func ValidateToken ¶
Validate a token and returns the userid.
Types ¶
type Configuration ¶
var Conf Configuration
Click to show internal directories.
Click to hide internal directories.