dw-sdk/config.go
timerzz 62b04c9599 feat init 初始化
TODO fiber v3 client proxy有bug,proxy不生效
2024-07-24 10:43:43 +08:00

20 lines
510 B
Go

package dw_sdk
type Config struct {
Public PublicConfig `json:"public" yaml:"public"`
Proxy *ProxyConfig `json:"proxy,omitempty" yaml:"proxy,omitempty"`
}
type PublicConfig struct {
Key string `json:"key" yaml:"key"`
Secret string `json:"secret" yaml:"secret"`
Env string `json:"env" yaml:"env"`
}
type ProxyConfig struct {
Host string `json:"host" yaml:"host"`
Port string `json:"port" yaml:"port"`
User string `json:"user" yaml:"user"`
Pass string `json:"pass" yaml:"pass"`
}