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

package dlna

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

Index

Package Files

cds.go cms.go dlna.go dlna_util.go

Variables

var Command = &cobra.Command{
    Use:   "dlna remote:path",
    Short: `Serve remote:path over DLNA`,
    Long: "" /* 575 byte string literal not displayed */+
        dlnaflags.Help + vfs.Help,
    Run: func(command *cobra.Command, args []string) {
        cmd.CheckArgs(1, 1, command, args)
        f := cmd.NewFsSrc(args)

        cmd.Run(false, false, command, func() error {
            s := newServer(f, &dlnaflags.Opt)
            if err := s.Serve(); err != nil {
                return err
            }
            s.Wait()
            return nil
        })
    },
}

Command definition for cobra.

type UPnPService Uses

type UPnPService interface {
    Handle(action string, argsXML []byte, r *http.Request) (respArgs map[string]string, err error)
    Subscribe(callback []*url.URL, timeoutSeconds int) (sid string, actualTimeout int, err error)
    Unsubscribe(sid string) error
}

UPnPService is the interface for the SOAP service.

Directories

PathSynopsis
data
dlnaflags

Package dlna imports 33 packages (graph) and is imported by 1 packages. Updated 2019-08-06. Refresh now. Tools for package owners.