Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigItem ¶
type ConfigItem struct { //键值 Key string `json:"key"` //配置值 Value string `json:" "` // 环境变量 EnvValue string `json:"env_value"` // 默认值 DefaultValue string `json:"default_value"` // 实际值 EndValue string `json:"end_value"` basedto.BaseEntity }
@Title 文件名称: configitem.go @Description 描述: 配置项解析值
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
func NewConfigItem ¶
func NewConfigItem(k, v string) *ConfigItem
func (*ConfigItem) Check ¶
func (this *ConfigItem) Check() bool
func (*ConfigItem) Log ¶
func (this *ConfigItem) Log()
func (*ConfigItem) ParseValue ¶
func (this *ConfigItem) ParseValue() *ConfigItem
${HOSTURL:huawei.akunlong.top:2379}
func (*ConfigItem) String ¶
func (this *ConfigItem) String() string
type DatasourceClientDto ¶
type DatasourceClientDto struct { IchubClientDto Dbtype string `json:"dbtype"` Dbname string `json:"dbname"` Host string `json:"host"` Port string `json:"port"` Username string `json:"username"` Password string `json:"password"` Charset string `json:"charset"` }
func NewDatasourceClientDto ¶
func NewDatasourceClientDto() *DatasourceClientDto
func (*DatasourceClientDto) Parse ¶
func (this *DatasourceClientDto) Parse() *DatasourceClientDto
type DbClientDto ¶
type DbClientDto struct { IchubClientDto Dbtype string `json:"dbtype"` Dbname string `json:"dbname"` Host string `json:"host"` Port string `json:"port"` Username string `json:"username"` Password string `json:"password"` Charset string `json:"charset"` Sslmode string `json:"sslmode"` }
func NewDbClientDto ¶
func NewDbClientDto() *DbClientDto
func (*DbClientDto) Parse ¶
func (this *DbClientDto) Parse() *DbClientDto
type ElasticClientDto ¶
type ElasticClientDto struct { IchubClientDto URL string `json:"url"` //("http://192.168.4.111:9200,"), // 设置基于http base auth验证的账号和密码 //elastic.SetBasicAuth("elastic", "123456"), Username string `json:"username"` Password string `json:"password"` // 启用gzip压缩 Gzip bool `json:"gzip"` }
func NewElasticClientDto ¶
func NewElasticClientDto() *ElasticClientDto
func (*ElasticClientDto) Parse ¶
func (this *ElasticClientDto) Parse() *ElasticClientDto
type IchubClientDto ¶
type IchubClientDto struct {
basedto.BaseEntity
}
func (*IchubClientDto) ParseValue ¶
func (this *IchubClientDto) ParseValue(key, value string) string
type RedisClientDto ¶
type RedisClientDto struct { IchubClientDto Addr string `json:"addr"` // "192.168.14.58:6379", Password string `json:"password"` // "KiZ9dJBSk1cju", DB int `json:"DB"` }
func NewRedisClientDto ¶
func NewRedisClientDto() *RedisClientDto
func (*RedisClientDto) Parse ¶
func (this *RedisClientDto) Parse() *RedisClientDto
type RpcServerDto ¶
type RpcServerDto struct { EtcdHost string `json:"etcd_host"` ServerName string `json:"server_name"` ServerPort int `json:"server_port"` ClientName string `json:"client_name"` IchubClientDto }
@Title 文件名称: RpcServerDto.go @Description 描述: Rpc服务配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
func NewRpcServerDto ¶
func NewRpcServerDto() *RpcServerDto
func (*RpcServerDto) Parse ¶
func (this *RpcServerDto) Parse() *RpcServerDto
func (*RpcServerDto) ToString ¶
func (this *RpcServerDto) ToString() string
type SwaggerClientDto ¶
type SwaggerClientDto struct { IchubClientDto Host string `json:"host"` BasePath string `json:"base_path"` Version string `json:"version"` Title string `json:"title"` Enable string `json:"enable"` }
func NewSwaggerClientDto ¶
func NewSwaggerClientDto() *SwaggerClientDto
func (*SwaggerClientDto) Parse ¶
func (this *SwaggerClientDto) Parse() *SwaggerClientDto
type WebClientDto ¶
type WebClientDto struct { WebServerDto //used by client TestUrl string `json:"test_url"` }
@Title 文件名称: WebServerDto.go @Description 描述: Web服务配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
func NewWebClient ¶
func NewWebClient() *WebClientDto
func NewWebClientDto ¶
func NewWebClientDto(webServerDto WebServerDto) *WebClientDto
func (*WebClientDto) Parse ¶
func (this *WebClientDto) Parse() *WebClientDto
type WebServerDto ¶
type WebServerDto struct { EtcdHost string `json:"etcd_host"` ServerName string `json:"server_name"` ServerPort int `json:"server_port"` //used by client //TestUrl string IchubClientDto }
@Title 文件名称: WebServerDto.go @Description 描述: Web服务配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
func NewWebServerDto ¶
func NewWebServerDto() *WebServerDto
func (*WebServerDto) Parse ¶
func (this *WebServerDto) Parse() *WebServerDto
func (*WebServerDto) String ¶
func (this *WebServerDto) String() string