Documentation ¶
Index ¶
- Constants
- Variables
- func LoadConfigContext() baseiface.ISingleton
- func LoadConfigItem() baseiface.ISingleton
- func LoadIchubClientDto() baseiface.ISingleton
- type ConfigContext
- func (this *ConfigContext) Encdec() encrypt.IEncDec
- func (this *ConfigContext) Env_vars() map[string]any
- func (this *ConfigContext) FindVar(key string)
- func (this *ConfigContext) Ini()
- func (this *ConfigContext) PutVar(key string, value any)
- func (this *ConfigContext) RegisterEncDec(encdec encrypt.IEncDec)
- func (this *ConfigContext) SetEncdec(encdec encrypt.IEncDec)
- func (this *ConfigContext) SetEnv_vars(env_vars map[string]any)
- type ConfigItem
- type IchubClientDto
- func (this *IchubClientDto) Parse() configiface.IIchubClient
- func (this *IchubClientDto) ParseSome(some any)
- func (this *IchubClientDto) ParseStruct(value reflect.Value)
- func (this *IchubClientDto) ParseValue(key, value string) string
- func (this *IchubClientDto) ParseValues(key string, values ...*string)
Constants ¶
View Source
const ITEM_KEY = "ITEM_KEY"
Variables ¶
View Source
var Context = NewConfigContext()
@Title 文件名称: config_context.go @Description 描述: 配置上下文
@Author 作者: leijianming@163.com 时间(2024-03-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-03-18 22:38:21)
Functions ¶
func LoadConfigContext ¶ added in v1.2.11
func LoadConfigContext() baseiface.ISingleton
func LoadConfigItem ¶
func LoadConfigItem() baseiface.ISingleton
func LoadIchubClientDto ¶
func LoadIchubClientDto() baseiface.ISingleton
Types ¶
type ConfigContext ¶
type ConfigContext struct { basedto.BaseEntity // contains filtered or unexported fields }
func FindBeanConfigContext ¶ added in v1.2.11
func FindBeanConfigContext() *ConfigContext
func NewConfigContext ¶
func NewConfigContext() *ConfigContext
func (*ConfigContext) Encdec ¶
func (this *ConfigContext) Encdec() encrypt.IEncDec
func (*ConfigContext) Env_vars ¶
func (this *ConfigContext) Env_vars() map[string]any
func (*ConfigContext) FindVar ¶
func (this *ConfigContext) FindVar(key string)
func (*ConfigContext) Ini ¶
func (this *ConfigContext) Ini()
func (*ConfigContext) PutVar ¶
func (this *ConfigContext) PutVar(key string, value any)
func (*ConfigContext) RegisterEncDec ¶
func (this *ConfigContext) RegisterEncDec(encdec encrypt.IEncDec)
func (*ConfigContext) SetEncdec ¶
func (this *ConfigContext) SetEncdec(encdec encrypt.IEncDec)
func (*ConfigContext) SetEnv_vars ¶
func (this *ConfigContext) SetEnv_vars(env_vars map[string]any)
type ConfigItem ¶
type ConfigItem struct { //键值 Key string `json:"key"` //配置值 Value string `json:"value"` // 环境变量 EnvValue string `json:"env_value"` // 默认值 DefaultValue string `json:"default_value"` // 实际值 EndValue string `json:"end_value"` basedto.BaseEntity }
func FindBeanConfigItem ¶
func FindBeanConfigItem() *ConfigItem
func NewConfigItem ¶
func NewConfigItem(k, v string) *ConfigItem
func (*ConfigItem) Check ¶
func (this *ConfigItem) Check() bool
func (*ConfigItem) Encrypt ¶
func (this *ConfigItem) Encrypt() string
func (*ConfigItem) ParseValue ¶
func (this *ConfigItem) ParseValue() *ConfigItem
${HOSTURL:huawei.akunlong.top:2379}
type IchubClientDto ¶
type IchubClientDto struct {
basedto.BaseEntity
}
func FindBeanIchubClientDto ¶
func FindBeanIchubClientDto() *IchubClientDto
func NewIchubClientDto ¶
func NewIchubClientDto() *IchubClientDto
func (*IchubClientDto) Parse ¶
func (this *IchubClientDto) Parse() configiface.IIchubClient
func (*IchubClientDto) ParseSome ¶
func (this *IchubClientDto) ParseSome(some any)
func (*IchubClientDto) ParseStruct ¶
func (this *IchubClientDto) ParseStruct(value reflect.Value)
func (*IchubClientDto) ParseValue ¶
func (this *IchubClientDto) ParseValue(key, value string) string
func (*IchubClientDto) ParseValues ¶
func (this *IchubClientDto) ParseValues(key string, values ...*string)
Click to show internal directories.
Click to hide internal directories.