Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalServerConfig ServerConfig GlobalConsulConfig ConsulConfig )
Functions ¶
This section is empty.
Types ¶
type BlobSrvConfig ¶
type BlobSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type ConsulConfig ¶
type MysqlConfig ¶
type MysqlConfig struct {
Host string `mapstructure:"host" json:"host"`
Port int `mapstructure:"port" json:"port"`
Name string `mapstructure:"db" json:"db"`
User string `mapstructure:"user" json:"user"`
Password string `mapstructure:"password" json:"password"`
Salt string `mapstructure:"salt" json:"salt"`
}
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type PasetoConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Name string `mapstructure:"name" json:"name"`
Host string `mapstructure:"host" json:"host"`
PasetoInfo PasetoConfig `mapstructure:"paseto" json:"paseto"`
MysqlInfo MysqlConfig `mapstructure:"mysql" json:"mysql"`
OtelInfo OtelConfig `mapstructure:"otel" json:"otel"`
WXInfo WXConfig `mapstructure:"wx_config" json:"wx_config"`
BlobSrvInfo BlobSrvConfig `mapstructure:"blob_srv" json:"blob_srv"`
}
Click to show internal directories.
Click to hide internal directories.