Documentation ¶
Index ¶
- Constants
- func LoadFactroyClientDto() baseiface.ISingleton
- func LoadGocenterDto() baseiface.ISingleton
- type BypassDto
- type DbClientDto
- type ElasticClientDto
- type FactroyClientDto
- type GatewayDto
- type GocenterDto
- type GormClientDto
- type NatsClientDto
- type RedisClientDto
- type RouteDto
- type RpcServerDto
- type SoftwareDto
- type SwaggerClientDto
- type WebClientDto
- type WebServerDto
Constants ¶
const SEVICE_NAME_NONE = "web.none.com"
@Title 文件名称: gateway_dto.go @Description 描述: GatewayDto配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
Variables ¶
This section is empty.
Functions ¶
func LoadFactroyClientDto ¶ added in v1.0.61
func LoadFactroyClientDto() baseiface.ISingleton
func LoadGocenterDto ¶ added in v1.2.11
func LoadGocenterDto() baseiface.ISingleton
Types ¶
type DbClientDto ¶
type DbClientDto struct { configdto.IchubClientDto `json:"-"` Dbtype string `json:"dbtype"` Dbname string `json:"dbname"` Host string `json:"host"` Port string `json:"port"` Username string `json:"username"` Password string `json:"password"` Sslmode string `json:"sslmode"` Charset string `json:"charset"` GormClient *GormClientDto `json:"gorm_client"` }
func NewDbClientDto ¶
func NewDbClientDto() *DbClientDto
func (*DbClientDto) IsMysql ¶ added in v1.0.10
func (this *DbClientDto) IsMysql() bool
func (*DbClientDto) MakeCockroachUrl ¶ added in v1.0.3
func (this *DbClientDto) MakeCockroachUrl() string
func (*DbClientDto) MakeMysqlUrl ¶ added in v1.0.2
func (this *DbClientDto) MakeMysqlUrl() string
func (*DbClientDto) MakePostgresUrl ¶ added in v1.0.4
func (this *DbClientDto) MakePostgresUrl() string
type ElasticClientDto ¶
type ElasticClientDto struct { configdto.IchubClientDto URL string `json:"url"` //("http://192.168.4.111:9200,"), // 设置基于http configdto 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 FactroyClientDto ¶ added in v1.0.4
type FactroyClientDto struct { basedto.BaseEntitySingle Author string PkgNow string PkgNew string PkgApp string PkgAppNew string Time2Int string JsonCamel bool }
func FindBeanFactroyClientDto ¶ added in v1.0.61
func FindBeanFactroyClientDto() *FactroyClientDto
func NewFactroyClientDto ¶ added in v1.0.17
func NewFactroyClientDto() *FactroyClientDto
type GatewayDto ¶ added in v1.0.14
type GatewayDto struct { ByPass []BypassDto `json:"by_pass"` Routes []RouteDto `json:"routes"` //- path: /datadict //serviceId: web.platform.com MapPath2Service map[string]string `json:"map_path_2_service,omitempty"` configdto.IchubClientDto `json:"-"` }
func NewGatewayDto ¶ added in v1.0.14
func NewGatewayDto() *GatewayDto
func (*GatewayDto) Bypass ¶ added in v1.0.22
func (this *GatewayDto) Bypass(path string) bool
func (*GatewayDto) FindServiceName ¶ added in v1.0.20
func (this *GatewayDto) FindServiceName(path string) string
func (*GatewayDto) ToMap ¶ added in v1.0.20
func (this *GatewayDto) ToMap() *GatewayDto
- path: /datadict serviceId: web.platform.com
type GocenterDto ¶ added in v1.0.603
type GocenterDto struct { basedto.BaseEntity Centertype string Hosturl string }
func FindBeanGocenterDto ¶ added in v1.2.11
func FindBeanGocenterDto() *GocenterDto
func NewGocenterDto ¶ added in v1.0.603
func NewGocenterDto() *GocenterDto
type GormClientDto ¶
type GormClientDto struct { configdto.IchubClientDto `json:"-"` Debug string `json:"debug"` DbType string `json:"db_type"` Enable string `json:"enabled"` MaxLifetime string `json:"max_lifetime"` MaxOpenConns string `json:"max_open_conns"` MaxIdleConns string `json:"max_idle_conns"` }
func NewGormClientDto ¶
func NewGormClientDto() *GormClientDto
type NatsClientDto ¶ added in v1.0.103
type NatsClientDto struct { configdto.IchubClientDto Url string `json:"url"` Timeout string `json:"timeout"` Subscribe struct { TopicSync string TopicAsync string } }
func NewNatsClientDto ¶ added in v1.0.103
func NewNatsClientDto() *NatsClientDto
type RedisClientDto ¶
type RedisClientDto struct { configdto.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 { configdto.IchubClientDto EtcdHost string `json:"etcd_host"` ServerName string `json:"server_name"` ClientName string `json:"client_name"` ServerPort int `json:"server_port"` }
@Title 文件名称: rpc_server_dto.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 ¶ added in v1.4.101
func NewRpcServerDto() *RpcServerDto
func (*RpcServerDto) Parse ¶
func (this *RpcServerDto) Parse() *RpcServerDto
type SoftwareDto ¶ added in v1.2.90
type SoftwareDto struct { configdto.IchubClientDto Env string Author string Corp string Salt string Version string Name string }
func NewSoftwareDto ¶ added in v1.2.90
func NewSoftwareDto() *SoftwareDto
type SwaggerClientDto ¶
type SwaggerClientDto struct { configdto.IchubClientDto `json:"-"` 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
type WebClientDto ¶
type WebClientDto struct { configdto.IchubClientDto EtcdHost string `json:"etcd_host"` ServerName string `json:"server_name"` TestUrl string `json:"test_url"` WebTimeout string `json:"web_timeout"` }
@Title 文件名称: web_server_dto.go @Description 描述: Web服务配置信息
@Author 作者: leijianming@163.com 时间(2024-02-18 22:38:21) @Update 作者: leijianming@163.com 时间(2024-02-18 22:38:21)
func NewWebClientDto ¶
func NewWebClientDto() *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"` ServerIp string `json:"server_ip,omitempty"` configdto.IchubClientDto }
@Title 文件名称: web_server_dto.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