daemon

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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