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 ¶ 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 OCRConfig ¶ added in v0.2.0
type OCRConfig struct {
AccessToken string `mapstructure:"access_token" json:"access_token"`
}
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type RedisConfig ¶ added in v0.2.0
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` MongoDBInfo MongoDBConfig `mapstructure:"mongodb" json:"mongodb"` RedisInfo RedisConfig `mapstructure:"redis" json:"redis"` OtelInfo OtelConfig `mapstructure:"otel" json:"otel"` OCRConfig OCRConfig `mapstructure:"ocr" json:"ocr"` BlobSrvInfo BlobSrvConfig `mapstructure:"blob_srv" json:"blob_srv"` }
Click to show internal directories.
Click to hide internal directories.