configdto

package
v1.4.108 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MulanPSL-2.0 Imports: 13 Imported by: 1

Documentation

Index

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) Decrypt

func (this *ConfigItem) Decrypt() string

decrypt

func (*ConfigItem) Encrypt

func (this *ConfigItem) Encrypt() string

func (*ConfigItem) IfEnc

func (this *ConfigItem) IfEnc() bool

decrypt

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)

Jump to

Keyboard shortcuts

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