Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxConcurrent = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
Services map[string]Service
Routes []Route
DialTimeout time.Duration
ResponseHeaderTimeout time.Duration
ShutdownTimeout time.Duration
}
func LoadWithEnv ¶
LoadWithEnv resolves process environment > dotenv > JSON > defaults.
type Service ¶
type Service struct {
CostResolver middleware.CostResolver
Decisions *decision.Engine
Collectors []decision.Collector
Upstream *url.URL
MaxConcurrent int
ReservedCritical int
Adaptive *middleware.AdaptiveConfig
Tenants *middleware.TenantConfig
Priorities *prioritypkg.Config
}
Click to show internal directories.
Click to hide internal directories.