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
Click to show internal directories.
Click to hide internal directories.