configs

package
v0.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RPC        RPC      `yaml:"rpc"`
	Debug      bool     `yaml:"debug"`
	Interval   int      `yaml:"interval"`
	OutPutPath string   `yaml:"out_put_path"`
	Feature    Feature  `yaml:"feature"`
	LiveRooms  []string `yaml:"live_rooms"`
	OutputTmpl string   `yaml:"out_put_tmpl"`

	VideoSplitStrategies VideoSplitStrategies `yaml:"video_split_strategies"`
	// contains filtered or unexported fields
}

Config content all config info.

func NewConfigWithFile

func NewConfigWithFile(file string) (*Config, error)

func (*Config) Marshal

func (c *Config) Marshal() error

func (*Config) Verify

func (c *Config) Verify() error

Verify will return an error when this config has problem.

type Feature

type Feature struct {
	UseNativeFlvParser bool `yaml:"use_native_flv_parser"`
}

Feature info.

type RPC

type RPC struct {
	Enable bool   `yaml:"enable"`
	Bind   string `yaml:"bind"`
}

RPC info.

type VideoSplitStrategies

type VideoSplitStrategies struct {
	OnRoomNameChanged bool          `yaml:"on_room_name_changed"`
	MaxDuration       time.Duration `yaml:"max_duration"`
}

VideoSplitStrategies info.

Jump to

Keyboard shortcuts

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