env

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigFileExecutor

func GetConfigFileExecutor() config.File

GetConfigFileExecutor 获取文件执行器

func InitConfig

func InitConfig(loadAppConfig func() (*config.AppConfig, error)) (*config.AppConfig, error)

InitConfig 使用指定配置初始化配置

func InitFileConfig

func InitFileConfig() *config.AppConfig

InitFileConfig 使用文件初始化配置

func Unmarshal

func Unmarshal(b []byte) (interface{}, error)

Unmarshal 反序列化

Types

type ConnectConfig

type ConnectConfig struct {
	//设置到http.client中timeout字段
	Timeout time.Duration
	//连接接口的uri
	URI string
	//是否重试
	IsRetry bool
	//appID
	AppID string
	//密钥
	Secret string
}

ConnectConfig 网络请求配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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