didl

package
v0.0.0-...-3c68aef Latest Latest
Warning

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

Go to latest
Published: May 31, 2013 License: BSD-2-Clause 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
	Value   string `xml:",chardata"`
}

type AlbumArtURI

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

type Class

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

type Container

type Container struct {
	XMLName     xml.Name
	ID          string        `xml:"id,attr"`
	ParentID    string        `xml:"parentID,attr"`
	Restricted  bool          `xml:"restricted,attr"`
	Res         []Res         `xml:"res"`
	Title       []Title       `xml:"title"`
	Class       []Class       `xml:"class"`
	AlbumArtURI []AlbumArtURI `xml:"albumArtURI"`
	Creator     []Creator     `xml:"creator"`
	// contains filtered or unexported fields
}

func (*Container) Validate

func (this *Container) Validate()

type Creator

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

type Item

type Item struct {
	XMLName             xml.Name
	ID                  string                `xml:"id,attr"`
	ParentID            string                `xml:"parentID,attr"`
	Restricted          bool                  `xml:"restricted,attr"`
	Res                 []Res                 `xml:"res"`
	Title               []Title               `xml:"title"`
	Class               []Class               `xml:"class"`
	AlbumArtURI         []AlbumArtURI         `xml:"albumArtURI"`
	Creator             []Creator             `xml:"creator"`
	Album               []Album               `xml:"album"`
	OriginalTrackNumber []OriginalTrackNumber `xml:"originalTrackNumber"`
	// contains filtered or unexported fields
}

func (*Item) Validate

func (this *Item) Validate()

type Lite

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

func (*Lite) Validate

func (this *Lite) Validate()

type OriginalTrackNumber

type OriginalTrackNumber struct {
	XMLName xml.Name
	Value   string `xml:",chardata"`
}

type Res

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

type Title

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

Jump to

Keyboard shortcuts

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