baseconfig

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 14

Documentation

Index

Constants

View Source
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

Types

type BypassDto added in v1.0.18

type BypassDto struct {
	Path string `json:"path"`
}

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 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 RouteDto added in v1.0.14

type RouteDto struct {
	ServiceId string `json:"service_id"`
	Path      string `json:"path"`
}

- path: /datadict serviceId: web.platform.com

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 (*RpcServerDto) Parse

func (this *RpcServerDto) Parse() *RpcServerDto

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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