config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Display = ":99"

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
	Redis      RedisConfig               `yaml:"redis"`
	S3         S3Config                  `yaml:"s3"`
	Defaults   *livekit.RecordingOptions `yaml:"defaults"`
}

func NewConfig

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

func TestConfig

func TestConfig() *Config

func (*Config) ApplyDefaults

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

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"`
	Region    string `yaml:"region"`
}

Jump to

Keyboard shortcuts

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