config

package
v0.0.0-...-39f3c58 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppSecret string `mapstructure:"app_secret"`

	LogLevel string `mapstructure:"log_level"`

	HTTPAddress string `mapstructure:"http_address"`

	DBConn            string `mapstructure:"db_conn"`
	DBMaxOpen         int    `mapstructure:"db_max_open"`
	DBMaxIdle         int    `mapstructure:"db_max_idle"`
	DBMaxIdleConnTime int    `mapstructure:"db_max_idle_conn_time"`

	RedisConn string `mapstructure:"redis_conn"`
}

func LoadConfig

func LoadConfig() Config

LoadConfig reads the configuration from viper and returns a Config struct.

Jump to

Keyboard shortcuts

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