Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server ServerConfig Database DatabaseConfig }
type DatabaseConfig ¶
type DatabaseConfig struct {
Connector string `envconfig:"MONGO_CONNECTOR" default:"mongodb://USER:PASS@localhost:27017/db"`
}
type ServerConfig ¶
type ServerConfig struct { Port string `envconfig:"SERVER_PORT" default:"8000"` LogLevel string `envconfig:"LOG_LEVEL" default:"InfoLevel"` HealthPort string `envconfig:"HEALTH_PORT" default:"9000"` MetricsPort string `envconfig:"METRICS_PORT" default:"9123"` MaxCPU string `envconfig:"MAX_CPU"` RequestCPU string `envconfig:"REQ_CPU"` MaxMemory string `envconfig:"MAX_MEMORY"` RequestMemory string `envconfig:"REQ_MEMORY"` }
Click to show internal directories.
Click to hide internal directories.