Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "watch", Usage: "Automatically download multiple Live FC2 streams.", Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, Required: true, Usage: `Config file path. (required)`, Destination: &configPath, }, }, Action: func(cCtx *cli.Context) error { ctx, cancel := context.WithCancel(cCtx.Context) cleanChan := make(chan os.Signal, 1) signal.Notify(cleanChan, os.Interrupt, syscall.SIGINT, syscall.SIGTERM) go func() { <-cleanChan cancel() }() configChan := make(chan *Config) go WatchConfig(ctx, configPath, configChan) return ConfigReloader(ctx, configChan, handleConfig) }, }
Functions ¶
func ConfigReloader ¶
Types ¶
type Config ¶
type Config struct { DefaultParams fc2.OptionalParams `yaml:"defaultParams"` Channels map[string]fc2.OptionalParams `yaml:"channels"` }
Click to show internal directories.
Click to hide internal directories.