flag

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug           = app.Flag("debug", "Enable debug mode.").Default("false").Bool()
	Interval        = app.Flag("interval", "Interval of query live status").Default("20").Short('t').Int()
	Output          = app.Flag("output", "Output file path.").Short('o').Default("./").String()
	Input           = app.Flag("input", "Live room urls").Short('i').Strings()
	Conf            = app.Flag("config", "Config file.").Short('c').String()
	RPC             = app.Flag("enable-rpc", "Enable RPC server.").Default("false").Bool()
	RPCBind         = app.Flag("rpc-bind", "RPC server bind address").Default(":8080").String()
	NativeFlvParser = app.Flag("native-flv-parser", "use native flv parser").Default("false").Bool()
	OutputFileTmpl  = app.Flag("output-file-tmpl", "output file name template").Default("").String()
	SplitStrategies = app.Flag("split-strategies", "video split strategies, support\"on_room_name_changed\", \"max_duration:(duration)\"").Strings()
)

Functions

func GenConfigFromFlags

func GenConfigFromFlags() *configs.Config

GenConfigFromFlags generates configuration by parsing command line parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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