Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig() (*appConfig, error)
Types ¶
type AppConfig ¶ added in v0.0.3
type AppConfig interface {
GetConfig() *appConfig
GetGRPCConfig() *GRPCServerConfig
GetHTTPConfig() *HTTPServerConfig
GetHealthConfig() *HealthServerConfig
GetMongoConfig() *MongoConfig
GetGRPCServices() []*GRPCService
}
type AppEnv ¶ added in v0.0.6
type AppEnv string
"dev" | "prod"
func (*AppEnv) UnmarshalText ¶ added in v0.0.6
type GRPCServerConfig ¶
type GRPCService ¶
type GRPCService struct {
Name string
Address string
Register RegisterFunc
}
type HTTPServerConfig ¶
type HealthServerConfig ¶
type MongoConfig ¶ added in v0.0.7
type RegisterFunc ¶
Click to show internal directories.
Click to hide internal directories.