Documentation ¶
Index ¶
- Constants
- func InjectDbClientDto(s *DbClientDto)
- func InjectElasticClientDto(s *ElasticClientDto)
- func InjectGatewayDto(s *GatewayDto)
- func InjectGormClientDto(s *GormClientDto)
- func InjectNatsClientDto(s *NatsClientDto)
- func InjectRedisClientDto(s *RedisClientDto)
- func InjectRpcServerDto(s *RpcServerDto)
- func InjectSoftwareDto(s *SoftwareDto)
- func InjectSwaggerClientDto(s *SwaggerClientDto)
- func InjectWebClientDto(s *WebClientDto)
- func InjectWebServerDto(s *WebServerDto)
- func LoadDbClientDto() baseiface.ISingleton
- func LoadElasticClientDto() baseiface.ISingleton
- func LoadFactroyClientDto() baseiface.ISingleton
- func LoadGatewayDto() baseiface.ISingleton
- func LoadGocenterDto() baseiface.ISingleton
- func LoadGormClientDto() baseiface.ISingleton
- func LoadNatsClientDto() baseiface.ISingleton
- func LoadRedisClientDto() baseiface.ISingleton
- func LoadRpcServerDto() baseiface.ISingleton
- func LoadSoftwareDto() baseiface.ISingleton
- func LoadSwaggerClientDto() baseiface.ISingleton
- func LoadWebClientDto() baseiface.ISingleton
- func LoadWebServerDto() baseiface.ISingleton
- type BypassDto
- type DbClientDto
- func (this *DbClientDto) CacheKey() string
- func (this *DbClientDto) IfCockdb() bool
- func (this *DbClientDto) IfMysql() bool
- func (this *DbClientDto) IfPostgres() bool
- func (this *DbClientDto) IsMysql() bool
- func (this *DbClientDto) MakeCockroachUrl() string
- func (this *DbClientDto) MakeMysqlUrl() string
- func (this *DbClientDto) MakePostgresUrl() string
- 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 InjectDbClientDto ¶ added in v1.4.128
func InjectDbClientDto(s *DbClientDto)
func InjectElasticClientDto ¶ added in v1.4.128
func InjectElasticClientDto(s *ElasticClientDto)
func InjectGatewayDto ¶ added in v1.4.128
func InjectGatewayDto(s *GatewayDto)
func InjectGormClientDto ¶ added in v1.4.128
func InjectGormClientDto(s *GormClientDto)
func InjectNatsClientDto ¶ added in v1.4.128
func InjectNatsClientDto(s *NatsClientDto)
func InjectRedisClientDto ¶ added in v1.4.128
func InjectRedisClientDto(s *RedisClientDto)
func InjectRpcServerDto ¶ added in v1.4.128
func InjectRpcServerDto(s *RpcServerDto)
func InjectSoftwareDto ¶ added in v1.4.128
func InjectSoftwareDto(s *SoftwareDto)
func InjectSwaggerClientDto ¶ added in v1.4.128
func InjectSwaggerClientDto(s *SwaggerClientDto)
func InjectWebClientDto ¶ added in v1.4.128
func InjectWebClientDto(s *WebClientDto)
func InjectWebServerDto ¶ added in v1.4.128
func InjectWebServerDto(s *WebServerDto)
func LoadDbClientDto ¶ added in v1.4.128
func LoadDbClientDto() baseiface.ISingleton
func LoadElasticClientDto ¶ added in v1.4.128
func LoadElasticClientDto() baseiface.ISingleton
func LoadFactroyClientDto ¶ added in v1.0.61
func LoadFactroyClientDto() baseiface.ISingleton
func LoadGatewayDto ¶ added in v1.4.128
func LoadGatewayDto() baseiface.ISingleton
func LoadGocenterDto ¶ added in v1.2.11
func LoadGocenterDto() baseiface.ISingleton
func LoadGormClientDto ¶ added in v1.4.128
func LoadGormClientDto() baseiface.ISingleton
func LoadNatsClientDto ¶ added in v1.4.128
func LoadNatsClientDto() baseiface.ISingleton
func LoadRedisClientDto ¶ added in v1.4.128
func LoadRedisClientDto() baseiface.ISingleton
func LoadRpcServerDto ¶ added in v1.4.128
func LoadRpcServerDto() baseiface.ISingleton
func LoadSoftwareDto ¶ added in v1.4.128
func LoadSoftwareDto() baseiface.ISingleton
func LoadSwaggerClientDto ¶ added in v1.4.128
func LoadSwaggerClientDto() baseiface.ISingleton
func LoadWebClientDto ¶ added in v1.4.128
func LoadWebClientDto() baseiface.ISingleton
func LoadWebServerDto ¶ added in v1.4.128
func LoadWebServerDto() 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 FindBeanDbClientDto ¶ added in v1.4.128
func FindBeanDbClientDto() *DbClientDto
func NewDbClientDto ¶
func NewDbClientDto() *DbClientDto
func (*DbClientDto) CacheKey ¶ added in v1.4.102
func (this *DbClientDto) CacheKey() string
func (*DbClientDto) IfCockdb ¶ added in v1.4.102
func (this *DbClientDto) IfCockdb() bool
func (*DbClientDto) IfMysql ¶ added in v1.4.102
func (this *DbClientDto) IfMysql() bool
func (*DbClientDto) IfPostgres ¶ added in v1.4.102
func (this *DbClientDto) IfPostgres() bool
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 FindBeanElasticClientDto ¶ added in v1.4.128
func FindBeanElasticClientDto() *ElasticClientDto
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 FindBeanGatewayDto ¶ added in v1.4.128
func FindBeanGatewayDto() *GatewayDto
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 FindBeanGormClientDto ¶ added in v1.4.128
func FindBeanGormClientDto() *GormClientDto
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 FindBeanNatsClientDto ¶ added in v1.4.128
func FindBeanNatsClientDto() *NatsClientDto
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 FindBeanRedisClientDto ¶ added in v1.4.128
func FindBeanRedisClientDto() *RedisClientDto
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 FindBeanRpcServerDto ¶ added in v1.4.128
func FindBeanRpcServerDto() *RpcServerDto
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 WebPrerix string Author string Corp string Salt string Version string Name string }
func FindBeanSoftwareDto ¶ added in v1.4.128
func FindBeanSoftwareDto() *SoftwareDto
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 FindBeanSwaggerClientDto ¶ added in v1.4.128
func FindBeanSwaggerClientDto() *SwaggerClientDto
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 FindBeanWebClientDto ¶ added in v1.4.128
func FindBeanWebClientDto() *WebClientDto
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 FindBeanWebServerDto ¶ added in v1.4.128
func FindBeanWebServerDto() *WebServerDto
func NewWebServerDto ¶
func NewWebServerDto() *WebServerDto
func (*WebServerDto) Parse ¶
func (this *WebServerDto) Parse() *WebServerDto
func (*WebServerDto) String ¶
func (this *WebServerDto) String() string
Source Files ¶
- db_client_dto.go
- db_client_dto_init.go
- elastic_client_dto.go
- elastic_client_dto_init.go
- factroy_client_dto.go
- factroy_client_dto_init.go
- gateway_dto.go
- gateway_dto_init.go
- gocenter_dto.go
- gocenter_dto_init.go
- gorm_client_dto.go
- gorm_client_dto_init.go
- nats_client_dto.go
- nats_client_dto_init.go
- redis_client_dto.go
- redis_client_dto_init.go
- rpc_server_dto.go
- rpc_server_dto_init.go
- software_dto.go
- software_dto_init.go
- swagger_client_dto.go
- swagger_client_dto_init.go
- web_client_dto.go
- web_client_dto_init.go
- web_server_dto.go
- web_server_dto_init.go