config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 2 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 {
	MysqlDSN      string        `mapstructure:"MYSQL_DSN"`
	RedisHost     string        `mapstructure:"REDIS_HOST"`
	AccessSecret  string        `mapstructure:"ACCESS_SECRET"`
	RefreshSecret string        `mapstructure:"REFRESH_SECRET"`
	Timeout       time.Duration `mapstructure:"TIMEOUT"`
	EndpointURL   string        `mapstructure:"EndpointUrl"`
	Region        string        `mapstructure:"Region"`
	ID            string        `mapstructure:"ID"`
	SecretKey     string        `mapstructure:"SecretKey"`
	AccessKey     string        `mapstructure:"AccessKey"`
	Profile       string        `mapstructure:"Profile"`
}

Config config

func LoadConfig

func LoadConfig(path string) (config Config, err error)

LoadConfig loads config

Jump to

Keyboard shortcuts

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