config

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL