metadataparser

package
v1.0.2-0...-217db02 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMetadata

func ReadMetadata(topLevelDirectory string, create_zip bool, write_full_metadata bool, epu_folder string, metadataFolderRegex string) ([]byte, error)

Types

type CustomData

type CustomData struct {
	KeyValues []KeyValue `xml:"KeyValueOfstringanyType"`
}

for key-value

type Element

type Element struct {
	XMLName  xml.Name
	Content  string    `xml:",chardata"`
	Children []Element `xml:",any"`
}

For tag-value

type KeyValue

type KeyValue struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

type MicroscopeImage

type MicroscopeImage struct {
	XMLName    xml.Name   `xml:"MicroscopeImage"`
	Name       string     `xml:"name"`
	UniqueID   string     `xml:"uniqueID"`
	CustomData CustomData `xml:"CustomData"`
}

XML PART Definitions of the xml structure

type ProgressTracker

type ProgressTracker struct {
	Total     int64
	Completed int64
}

Jump to

Keyboard shortcuts

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