Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalServerConfig ServerConfig GlobalConsulConfig ConsulConfig CarClient carservice.Client ProfileClient profileservice.Client UserClient userservice.Client )
Functions ¶
This section is empty.
Types ¶
type CarSrvConfig ¶
type CarSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type ConsulConfig ¶ added in v0.2.0
type MongoDBConfig ¶
type MongoDBConfig 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"` Collection string `mapstructure:"collection" json:"collection"` }
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type ProfileSrvConfig ¶
type ProfileSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` MongoDBInfo MongoDBConfig `mapstructure:"mongodb" json:"mongodb"` OtelInfo OtelConfig `mapstructure:"otel" json:"otel"` CarSrvInfo CarSrvConfig `mapstructure:"car_srv" json:"car_srv"` ProfileSrvInfo ProfileSrvConfig `mapstructure:"profile_srv" json:"profile_srv"` UserSrvInfo UserSrvConfig `mapstructure:"user_srv" json:"user_srv"` }
type UserSrvConfig ¶ added in v0.2.1
type UserSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
Click to show internal directories.
Click to hide internal directories.