data

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AlbumFile = "album.xml"
View Source
const GalleryFile = "gallery.xml"
View Source
const TemplateAlbumFile = "album-template.xml"
View Source
const TemplateGalleryFile = "gallery-template.xml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	XMLName xml.Name `xml:"album"`
	Link    string   `xml:"link"`
	Title   string   `xml:"title,omitempty"`
	Id      string   `xml:"id,omitempty"`
}

type AlbumPage

type AlbumPage struct {
	XMLName   xml.Name `xml:"albumpage"`
	Title     string   `xml:"title,omitempty"`
	Back      string   `xml:"back,omitempty"`
	Copyright string   `xml:"copyright,omitempty"`
	Albums    []Album  `xml:"album"`
}
type Gallery struct {
	XMLName   xml.Name `xml:"gallery"`
	Title     string   `xml:"title,omitempty"`
	Back      string   `xml:"back,omitempty"`
	Copyright string   `xml:"copyright,omitempty"`
	Download  string   `xml:"download,omitempty"`
	Thumb     Size     `xml:"thumb"`
	Preview   Size     `xml:"preview"`
	Image     Size     `xml:"image"`
	Photos    []Photo  `xml:"photo"`
}

type Photo

type Photo struct {
	XMLName     xml.Name `xml:"photo"`
	Name        string   `xml:"name"`
	Filename    string   `xml:"filename"`
	Original    Size     `xml:"original"`
	Title       string   `xml:"title,omitempty"`
	Caption     string   `xml:"caption,omitempty"`
	Date        string   `xml:"date,omitempty"`
	ISO         string   `xml:"iso,omitempty"`
	Exposure    string   `xml:"exposure,omitempty"`
	Aperture    string   `xml:"aperture,omitempty"`
	FocalLength string   `xml:"length,omitempty"`
	Download    string   `xml:"download,omitempty"`
}

type Size

type Size struct {
	Width  int `xml:"width"`
	Height int `xml:"height"`
}

Jump to

Keyboard shortcuts

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