Documentation ¶ Index ¶ func NewRedisClient(host, port, password string) *redis.Client func ParseExpirationTime(exp string) uint type Config func NewConfig(secretKey, aud, iss, exp string) *Config func (config *Config) GetAutoLogOutMinutes() time.Duration Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRedisClient ¶ func NewRedisClient(host, port, password string) *redis.Client func ParseExpirationTime ¶ func ParseExpirationTime(exp string) uint Types ¶ type Config ¶ type Config struct { SecretKey string AUD string ISS string EXP uint } func NewConfig ¶ func NewConfig(secretKey, aud, iss, exp string) *Config func (*Config) GetAutoLogOutMinutes ¶ func (config *Config) GetAutoLogOutMinutes() time.Duration Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.