app

package
v0.0.0-...-dd5d962 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppContext appContext

Functions

func InitAppContext

func InitAppContext()

Types

type AppConfig

type AppConfig struct {
	JWTConfig   JWTConfig               `mapstructure:"jwtconfig" json:"jwtconfig" yaml:"jwtconfig"`
	RedisConfig RedisConfig             `mapstructure:"redisconfig" json:"redisconfig" yaml:"redisconfig"`
	DbConfig    infrastructure.DbConfig `mapstructure:"dbconfig" json:"dbconfig" yaml:"dbconfig"`
}

type JWTConfig

type JWTConfig struct {
	SecretKey   string `mapstructure:"scretkey" json:"scretkey" yaml:"scretkey"`
	ExpiresTime int64  `mapstructure:"expirestime" json:"expirestime" yaml:"expirestime"`
	BufferTime  int64  `mapstructure:"buffertime" json:"buffertime" yaml:"buffertime"`
	Issuer      string `mapstructure:"issuer" json:"issuer" yaml:"issuer"`
}

type RedisConfig

type RedisConfig struct {
	DB       int    `mapstructure:"db" json:"db" yaml:"db"`
	Addr     string `mapstructure:"addr" json:"addr" yaml:"addr"`
	Password string `mapstructure:"password" json:"password" yaml:"password"`
}

Jump to

Keyboard shortcuts

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