didl

package
v0.0.0-...-d57ea70 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

A minimal implementation of the Digital Item Declaration Language (DIDL).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyDocument

func EmptyDocument() string

func EmptyDocuments

func EmptyDocuments(num int) string

Types

type Album

type Album struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

type AlbumArtURI

type AlbumArtURI struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

type AlbumArtist

type AlbumArtist struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

type Class

type Class struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

type Container

type Container struct {
	XMLName     xml.Name      `json:"-"`
	ID          string        `xml:"id,attr"`
	ParentID    string        `xml:"parentID,attr"`
	Restricted  bool          `xml:"restricted,attr"`
	Res         []Res         `xml:"res"`
	Title       []Title       `xml:"http://purl.org/dc/elements/1.1/ title"`
	Class       []Class       `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ class"`
	AlbumArtURI []AlbumArtURI `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ albumArtURI"`
	Creator     []Creator     `xml:"http://purl.org/dc/elements/1.1/ creator"`
	Album       []Album       `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ album"`
	AlbumArtist []AlbumArtist `xml:"urn:schemas-rinconnetworks-com:metadata-1-0/ albumArtist"`
	Desc        []Desc        `xml:"desc"`
	// contains filtered or unexported fields
}

func (*Container) Validate

func (d *Container) Validate()

type Creator

type Creator struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

type Desc

type Desc struct {
	XMLName   xml.Name `json:"-"`
	ID        string   `xml:"id,attr"`
	NameSpace string   `xml:"nameSpace,attr"`
	Value     string   `xml:",chardata"`
}

type Item

type Item struct {
	XMLName     xml.Name      `json:"-"`
	ID          string        `xml:"id,attr"`
	ParentID    string        `xml:"parentID,attr"`
	Restricted  bool          `xml:"restricted,attr"`
	Res         []Res         `xml:"res"`
	Title       []Title       `xml:"http://purl.org/dc/elements/1.1/ title"`
	Class       []Class       `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ class"`
	AlbumArtURI []AlbumArtURI `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ albumArtURI"`
	Creator     []Creator     `xml:"http://purl.org/dc/elements/1.1/ creator"`
	Album       []Album       `xml:"urn:schemas-upnp-org:metadata-1-0/upnp/ album"`
	AlbumArtist []AlbumArtist `xml:"urn:schemas-rinconnetworks-com:metadata-1-0/ albumArtist"`
	Desc        []Desc        `xml:"desc"`
	// contains filtered or unexported fields
}

func (*Item) Validate

func (d *Item) Validate()

type Lite

type Lite struct {
	XMLName   xml.Name    `json:"-"`
	Container []Container `xml:"container"`
	Item      []Item      `xml:"item"`
	// contains filtered or unexported fields
}

func (*Lite) Validate

func (d *Lite) Validate()

type Res

type Res struct {
	XMLName      xml.Name `json:"-"`
	ProtocolInfo string   `xml:"protocolInfo,attr"`
	Duration     string   `xml:"duration,attr"`
	Value        string   `xml:",chardata"`
}

type Title

type Title struct {
	XMLName xml.Name `json:"-"`
	Value   string   `xml:",chardata"`
}

Jump to

Keyboard shortcuts

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