process

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IIIFProcessReport

type IIIFProcessReport struct {
	Dimensions        IIIFProcessReportDimensions `json:"dimensions"`
	Palette           []IIIFProcessReportPalette  `json:"palette"`
	URIs              IIIFProcessReportURIs       `json:"uris"`
	Origin            string                      `json:"origin"`
	OriginURI         string                      `json:"origin_uri"`
	OriginFingerprint string                      `json:"origin_fingerprint"`
}

type IIIFProcessReportDimensions

type IIIFProcessReportDimensions map[string][]int

type IIIFProcessReportPalette

type IIIFProcessReportPalette struct {
	Name      string `json:"name"`
	Hex       string `json:"hex"`
	Reference string `json:"reference"`
}

type IIIFProcessReportURIs

type IIIFProcessReportURIs map[string]string

type MediaPropertiesSize

type MediaPropertiesSize struct {
	Extension string `json:"extension"`
	Height    int    `json:"height"`
	Width     int    `json:"width"`
	Mimetype  string `json:"mimetype"`
	Secret    string `json:"secret"`
}

type ReportProcessor

type ReportProcessor struct {
	Reports   *blob.Bucket
	Pending   *blob.Bucket
	WriterURI string
	Exporter  wof_exporter.Exporter
	Prune     bool
}

func (*ReportProcessor) ProcessReport

func (p *ReportProcessor) ProcessReport(ctx context.Context, report_uri string) error

func (*ReportProcessor) ProcessReports

func (p *ReportProcessor) ProcessReports(ctx context.Context, reports ...string) error

Jump to

Keyboard shortcuts

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