config

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileBaseline = "baseline"
	ProfileMain     = "main"
	ProfileHigh     = "high"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzblobConfig added in v0.3.8

type AzblobConfig struct {
	AccountName   string `yaml:"account_name"`
	AccountKey    string `yaml:"account_key"`
	ContainerName string `yaml:"container_name"`
}

type Config

type Config struct {
	ApiKey          string      `yaml:"api_key"`
	ApiSecret       string      `yaml:"api_secret"`
	WsUrl           string      `yaml:"ws_url"`
	HealthPort      int         `yaml:"health_port"`
	LogLevel        string      `yaml:"log_level"`
	TemplateAddress string      `yaml:"template_address"`
	Insecure        bool        `yaml:"insecure"`
	Redis           RedisConfig `yaml:"redis"`
	FileOutput      FileOutput  `yaml:"file_output"`
	Defaults        Defaults    `yaml:"defaults"`
	Display         string      `yaml:"-"`
}

func NewConfig

func NewConfig(confString string) (*Config, error)

func TestConfig

func TestConfig() (*Config, error)

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults(req *livekit.StartRecordingRequest)

type Defaults added in v0.3.8

type Defaults struct {
	Preset         livekit.RecordingPreset `yaml:"preset"`
	Width          int32                   `yaml:"width"`
	Height         int32                   `yaml:"height"`
	Depth          int32                   `yaml:"depth"`
	Framerate      int32                   `yaml:"framerate"`
	AudioBitrate   int32                   `yaml:"audio_bitrate"`
	AudioFrequency int32                   `yaml:"audio_frequency"`
	VideoBitrate   int32                   `yaml:"video_bitrate"`
	Profile        string                  `yaml:"profile"`
}

type FileOutput added in v0.3.3

type FileOutput struct {
	Local     bool          `yaml:"local"`
	S3        *S3Config     `yaml:"s3"`
	Azblob    *AzblobConfig `yaml:"azblob"`
	GCPConfig *GCPConfig    `yaml:"gcp"`
}

type GCPConfig added in v0.3.13

type GCPConfig struct {
	Bucket string `yaml:"bucket"`
}

type RedisConfig

type RedisConfig struct {
	Address  string `yaml:"address"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
}

type S3Config

type S3Config struct {
	AccessKey string `yaml:"access_key"`
	Secret    string `yaml:"secret"`
	Endpoint  string `yaml:"endpoint"`
	Region    string `yaml:"region"`
	Bucket    string `yaml:"bucket"`
}

Jump to

Keyboard shortcuts

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