config

package
v0.0.0-...-5c35791 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	Hostname   string
	UserName   string
	Password   string
	DbName     string
	Port       int
	Drivername string
	Sslmodel   bool
	Database   *sql.DB
	TestEnv    bool
}

func GetDbConfg

func GetDbConfg() *DbConfig

func NewDbConfig

func NewDbConfig(db *DbConfig) *DbConfig

func (*DbConfig) CreateDatabase

func (db *DbConfig) CreateDatabase() error

type JWTConfig

type JWTConfig struct {
	SecretKey  string
	ExpireTime int //Second
}

func GetJWTConfig

func GetJWTConfig() *JWTConfig

func NewJWTConfig

func NewJWTConfig(jwtInfo *JWTConfig) *JWTConfig

Jump to

Keyboard shortcuts

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