Documentation ¶ Index ¶ Variables type Command func (c *Command) Desc() string func (c *Command) Init(args []string) (err error) func (c *Command) Name() string func (c *Command) PrintUsage(prog string) func (c *Command) Run() (err error) type Options func (opts *Options) Load(configFile string) (err error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrMissConfigFile = errors.New("config file required") ) Functions ¶ This section is empty. Types ¶ type Command ¶ type Command struct { ConfigFile string } func (*Command) Desc ¶ func (c *Command) Desc() string func (*Command) Init ¶ func (c *Command) Init(args []string) (err error) func (*Command) Name ¶ func (c *Command) Name() string func (*Command) PrintUsage ¶ func (c *Command) PrintUsage(prog string) func (*Command) Run ¶ func (c *Command) Run() (err error) type Options ¶ type Options struct { // Storage options Storage impl.Options `yaml:"storage"` // Media options Media mediaserver.Options `yaml:"media"` } func (*Options) Load ¶ func (opts *Options) Load(configFile string) (err error) Source Files ¶ View all Source files args.go command.go options.go run.go Click to show internal directories. Click to hide internal directories.