Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticConfigurations = []ConfigurationItem{}
configurations for livekit-client, add more configuration to StaticConfigurations as need
Functions ¶
This section is empty.
Types ¶
type ClientConfigurationManager ¶
type ClientConfigurationManager interface {
GetConfiguration(clientInfo *livekit.ClientInfo) *livekit.ClientConfiguration
}
type ConfigurationItem ¶
type ConfigurationItem struct { Match Configuration *livekit.ClientConfiguration Merge bool }
type ScriptMatch ¶
type ScriptMatch struct {
Expr string
}
func (*ScriptMatch) Match ¶
func (m *ScriptMatch) Match(clientInfo *livekit.ClientInfo) (bool, error)
use result of eval script expression for match. expression examples: protocol bigger than 5 : c.protocol > 5 browser if firefox: c.browser == "firefox" combined rule : c.protocol > 5 && c.browser == "firefox"
type StaticClientConfigurationManager ¶
type StaticClientConfigurationManager struct {
// contains filtered or unexported fields
}
func NewStaticClientConfigurationManager ¶
func NewStaticClientConfigurationManager(confs []ConfigurationItem) *StaticClientConfigurationManager
func (*StaticClientConfigurationManager) GetConfiguration ¶
func (s *StaticClientConfigurationManager) GetConfiguration(clientInfo *livekit.ClientInfo) *livekit.ClientConfiguration
Click to show internal directories.
Click to hide internal directories.