service

package
v2.0.0-...-1112fa0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Definitions = ViewerDefinitions{
	"iiifzoomviewer": {
		Type:    "image",
		Subtype: "",
		// contains filtered or unexported fields
	},
	"videoviewer": {
		Type:    "video",
		Subtype: "",
		// contains filtered or unexported fields
	},
	"audioviewer": {
		Type:    "audio",
		Subtype: "",
		// contains filtered or unexported fields
	},
	"pdfviewer": {
		Type:    "text",
		Subtype: "pdf",
		// contains filtered or unexported fields
	},
	"foliateviewer": {
		Type:    "text",
		Subtype: "epub",
		// contains filtered or unexported fields
	},
	"replaywebviewer": {
		Type:    "archive",
		Subtype: "wacz",
		// contains filtered or unexported fields
	},
	"replay": {
		Type:    "archive",
		Subtype: "wacz",
		// contains filtered or unexported fields
	},
}

Functions

func NewActionService

func NewActionService(adClients map[string]mediaserverproto.ActionDispatcherClient, instance string, domains []string, concurrency, queueSize uint32, refreshErrorTimeout time.Duration, vfs fs.FS, dbs map[string]mediaserverproto.DatabaseClient, iiif string, logger zLogger.ZLogger) (*viewerAction, error)

Types

type ViewerDefinition

type ViewerDefinition struct {
	Type    string
	Subtype string
	// contains filtered or unexported fields
}

type ViewerDefinitions

type ViewerDefinitions map[string]*ViewerDefinition

func (ViewerDefinitions) StringListByType

func (vd ViewerDefinitions) StringListByType(t string) map[string]*generic.StringList

func (ViewerDefinitions) StringListMap

func (vd ViewerDefinitions) StringListMap() map[string]*mediaserverproto.StringListMap

Jump to

Keyboard shortcuts

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