rclone: github.com/ncw/rclone/cmd/serve/dlna/dlnaflags Index | Files

package dlnaflags

import "github.com/ncw/rclone/cmd/serve/dlna/dlnaflags"


Package Files



var DefaultOpt = Options{
    ListenAddr:   ":7879",
    FriendlyName: "",
    LogTrace:     false,

DefaultOpt contains the defaults options for DLNA serving.

var Help = `
### Server options

Use ` + "`--addr`" + ` to specify which IP address and port the server should
listen on, eg ` + "`--addr` or `--addr :8080`" + ` to listen to all

Use ` + "`--name`" + ` to choose the friendly server name, which is by
default "rclone (hostname)".

Use ` + "`--log-trace` in conjunction with `-vv`" + ` to enable additional debug
logging of all UPNP traffic.

Help contains the text for the command line help and manual.

var (
    Opt = DefaultOpt

Opt contains the options for DLNA serving.

func AddFlags Uses

func AddFlags(flagSet *pflag.FlagSet)

AddFlags add the command line flags for DLNA serving.

type Options Uses

type Options struct {
    ListenAddr   string
    FriendlyName string
    LogTrace     bool

Options is the type for DLNA serving options.

Package dlnaflags imports 3 packages (graph). Updated 2020-07-19. Refresh now. Tools for package owners.