media

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package for working with media metadata

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaMetadata

type MediaMetadata struct {
	ObjectId, TitleZhCn, TitleEn, Author, License string
}

A media object structure for media metadata

type MediaSearcher added in v0.0.18

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

MediaSearcher looks up media objects.

func NewMediaSearcher added in v0.0.18

func NewMediaSearcher(database *sql.DB, ctx context.Context) *MediaSearcher

Open database connection and prepare query

func (*MediaSearcher) FindMedia added in v0.0.18

func (ms *MediaSearcher) FindMedia(objectId string, ctx context.Context) (*MediaMetadata, error)

Looks up media metadata by object ID

func (*MediaSearcher) InitQuery added in v0.0.18

func (ms *MediaSearcher) InitQuery(ctx context.Context) error

func (*MediaSearcher) Initialized added in v0.0.18

func (ms *MediaSearcher) Initialized() bool

Looks up media metadata by object ID

Jump to

Keyboard shortcuts

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