clientconfiguration

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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 Match

type Match interface {
	Match(clientInfo *livekit.ClientInfo) (bool, error)
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL