Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRTMPPort int = 1935 DefaultWHIPPort = 8080 DefaultHTTPRelayPort = 9090 )
Variables ¶
View Source
var (
DefaultICEPortRange = []uint16{2000, 4000}
)
Functions ¶
This section is empty.
Types ¶
type CPUCostConfig ¶
type CPUCostConfig struct { RTMPCpuCost float64 `yaml:"rtmp_cpu_cost"` WHIPCpuCost float64 `yaml:"whip_cpu_cost"` WHIPBypassTranscodingCpuCost float64 `yaml:"whip_bypass_transcoding_cpu_cost"` URLCpuCost float64 `yaml:"url_cpu_cost"` MinIdleRatio float64 `yaml:"min_idle_ratio"` // Target idle cpu ratio when deciding availability for new requests }
type Config ¶
type Config struct { *ServiceConfig `yaml:",inline"` *InternalConfig `yaml:",inline"` }
func (*Config) GetLoggerFields ¶ added in v0.9.0
To use with logrus
func (*Config) InitLogger ¶
type InternalConfig ¶ added in v1.2.2
type ServiceConfig ¶ added in v1.2.2
type ServiceConfig 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"` DebugHandlerPort int `yaml:"debug_handler_port"` PrometheusPort int `yaml:"prometheus_port"` RTMPPort int `yaml:"rtmp_port"` // -1 to disable RTMP WHIPPort int `yaml:"whip_port"` // -1 to disable WHIP HTTPRelayPort int `yaml:"http_relay_port"` Logging logger.Config `yaml:"logging"` Development bool `yaml:"development"` // Used for WHIP transport RTCConfig rtcconfig.RTCConfig `yaml:"rtc_config"` // CPU costs for various ingress types CPUCost CPUCostConfig `yaml:"cpu_cost"` }
func (*ServiceConfig) InitDefaults ¶ added in v1.2.2
func (conf *ServiceConfig) InitDefaults() error
func (*ServiceConfig) InitWhipConf ¶ added in v1.2.2
func (c *ServiceConfig) InitWhipConf() error
Click to show internal directories.
Click to hide internal directories.