didl

package
v0.0.0-...-cbcd650 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 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 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:"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 `json:"-"`
	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:"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    `json:"-"`
	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 `json:"-"`
	Value   string   `xml:",chardata"`
}

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