config

package
v0.0.0-...-07376d0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg config

Functions

This section is empty.

Types

type ApiToken

type ApiToken struct {
	Token string `yml:"Token"`
}

type Mysql

type Mysql struct {
	Username           string `yml:"Username"`
	Password           string `yml:"Password"`
	Host               string `yml:"Host"`
	Port               string `yml:"Port"`
	DBName             string `yml:"DB_Name"`
	MaxOpenConnections int    `yml:"Max_Open_Connections"`
	MaxIdleConnections int    `yml:"Max_Idle_Connections"`
}

type Redis

type Redis struct {
	Address  string        `yml:"Address"`
	Password string        `yml:"Password"`
	TTL      time.Duration `yml:"TTL"`
}

type SetupResult

type SetupResult struct {
	MysqlConnection *sql.DB
	RedisConnection *redis.Client
}

func LoadConfig

func LoadConfig(configPath string) *SetupResult

Jump to

Keyboard shortcuts

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