configs

package
v0.0.0-...-4e2b7d2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-3.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 Database

type Database struct {
	Driver string `required:"true"`
	Host   string `default:"127.0.0.1"`
	Port   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"`
}

func JWTConfig

func JWTConfig() JWT

type Redis

type Redis struct {
	Host   string `required:"true"`
	Port   int    `required:"true"`
	DB     int    `required:"true"`
	User   string
	Passwd string
}

func RedisConfig

func RedisConfig() Redis

Jump to

Keyboard shortcuts

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