conf

package
v0.0.0-...-2eb6bad Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConf

type AppConf struct {
	server.Config `mapstructure:",squash"`
	HttpClient    interface{} `mapstructure:"HttpClient"`
	Logger        LogConfig   `mapstructure:"Logger"`
	Redis         RedisConf   `mapstructure:"Redis"`
	WeatherAPI    WeatherAPI  `mapstructure:"WeatherAPI"`
	PoemAPI       PoemAPI     `mapstructure:"PoemAPI"`
	Database      Database    `mapstructure:"Database"`
	NodeEnv       string
}

func LoadConf

func LoadConf() *AppConf

type Database

type Database struct {
}

type LogConfig

type LogConfig struct {
}

type PoemAPI

type PoemAPI struct {
	Url   string `mapstructure:"Url"`
	Token string `mapstructure:"Token"`
}

type RedisConf

type RedisConf struct {
}

type WeatherAPI

type WeatherAPI struct {
	Url    string `mapstructure:"Url"`
	ApiKey string `mapstructure:"ApiKey"`
}

Jump to

Keyboard shortcuts

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