config

package
v0.0.0-...-ac4b63c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 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 BaiduTranslateConfig

type BaiduTranslateConfig struct {
	Env       string
	AppID     string `required:"true" env:"app_id"`
	AppSecret string `required:"true" env:"app_secret"`
	BaseUri   string `env:"base_uri"`
	Log       `env:"log"`
}

func Get

func Get() *BaiduTranslateConfig

func LoadConfig

func LoadConfig() (*BaiduTranslateConfig, error)

LoadConfig 从配置文件中加载应用配置

type Log

type Log struct {
	Driver    string `env:"driver"`
	InfoPath  string `env:"info_path"`
	ErrPath   string `env:"err_path"`
	HttpDebug bool   `env:"http_debug"`
}

Jump to

Keyboard shortcuts

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