configs

package
v0.0.0-...-a330f29 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name string `required:"true"`
	Port int    `required:"true"`
}

func AppConfig

func AppConfig() *App

type Database

type Database struct {
	Driver string `default:"mysql"`
	Host   string `default:"127.0.0.1"`
	Post   int    `default:"3306"`
	User   string `required:"true"`
	Passwd string `required:"true"`
	DbName string `required:"true"`
}

func DatabaseConfig

func DatabaseConfig() *Database

type JWT

type JWT struct {
	Key     string `required:"true"`
	Issuer  string `required:"true"`
	Expires int64  `required:"true"`
}

func JWTConfig

func JWTConfig() *JWT

type Mailer

type Mailer struct {
	From     string `required:"true"`
	UserName string `required:"true"`
	PassWord string `required:"true"`
	Host     string `required:"true"`
	Port     int    `required:"true"`
}

func MailerConfig

func MailerConfig() *Mailer

type Redis

type Redis struct {
	Host   string `default:"127.0.0.1"`
	Port   int    `default:"6379"`
	User   string `required:"true"`
	Passwd string `default:""`
	Db     int    `required:"true"`
}

func RedisConfig

func RedisConfig() *Redis

Jump to

Keyboard shortcuts

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