Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRTMPPort int = 1935 DefaultHTTPRelayPort = 9090 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCostConfig ¶
type CPUCostConfig struct {
RTMPCpuCost float64 `yaml:"rtmp_cpu_cost"`
}
type Config ¶
type Config struct {
Redis *redis.RedisConfig `yaml:"redis"` // required
ApiKey string `yaml:"api_key"` // required (env LIVEKIT_API_KEY)
ApiSecret string `yaml:"api_secret"` // required (env LIVEKIT_API_SECRET)
WsUrl string `yaml:"ws_url"` // required (env LIVEKIT_WS_URL)
HealthPort int `yaml:"health_port"`
PrometheusPort int `yaml:"prometheus_port"`
RTMPPort int `yaml:"rtmp_port"`
HTTPRelayPort int `yaml:"http_relay_port"`
Logging logger.Config `yaml:"logging"`
// CPU costs for various ingress types
CPUCost CPUCostConfig `yaml:"cpu_cost"`
// internal
NodeID string `yaml:"-"`
}
func (*Config) InitLogger ¶
func (c *Config) InitLogger()
Click to show internal directories.
Click to hide internal directories.