mets

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FLocat

type FLocat struct {
	Type, URL string
}

FLocat represents a mets:FLocat of a mets:file entry.

func (FLocat) Open added in v0.6.0

func (f FLocat) Open() (io.ReadCloser, error)

Open opens a reader to the FLocat. Currently only URL's are supported.

type File

type File struct {
	MIMEType, ID string
	FLocat       FLocat
}

File represents a mets:file entry

type Match added in v0.5.0

type Match struct {
	Use, FileID, MIMEType, GroupID string
}

Match is used to match files. If a field is the empty string it is ignored for the matching.

func (Match) String added in v0.5.0

func (m Match) String() string

type Mets

type Mets struct {
	// contains filtered or unexported fields
}

Mets represents an open METS file.

func Open

func Open(path string) (Mets, error)

Open opens a Mets structure from a given path.

func (Mets) Find added in v0.5.0

func (m Mets) Find(match Match) []File

Find returns a list of matching files. Empty fields in the given match are ignored for the matching.

func (Mets) FindFileGrp

func (m Mets) FindFileGrp(use string) []File

FindFileGrp searches for a file group with the given USE flag. It returns a list of matching files.

Jump to

Keyboard shortcuts

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