configs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

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"`
	UploadPath           string               `yaml:"upload_path"`
	Feature              Feature              `yaml:"feature"`
	LiveRooms            []string             `yaml:"live_rooms"`
	OutputTmpl           string               `yaml:"out_put_tmpl"`
	VideoSplitStrategies VideoSplitStrategies `yaml:"video_split_strategies"`
	Cookies              map[string]string    `yaml:"cookies"`
	// 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