metadata

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataRequest

type MetadataRequest struct {
	Reader io.Reader `json:"-"`
}

func (MetadataRequest) Query

func (r MetadataRequest) Query() url.Values

Query returns no parameters - Reader is excluded from JSON (it's supplied as the request body, not the query string), leaving nothing to encode.

func (*MetadataRequest) Run

func (req *MetadataRequest) Run(ctx schema.Context) error

func (*MetadataRequest) Task

func (r *MetadataRequest) Task() string

Task identifies this task's kind, for Status.Task.

func (*MetadataRequest) Validate added in v1.9.3

func (r *MetadataRequest) Validate() error

Validate checks that r is well-formed: a non-nil Reader.

type MetadataResponse

type MetadataResponse struct {
	Name     string             `json:"name,omitempty" help:"Name of the probed input, if known (e.g. the uploaded filename)." example:"sample.mp3"`
	Type     string             `json:"type,omitempty" help:"Detected content type (MIME type) of the input, e.g. \"video/mp4\"." example:"video/mp4"`
	Metadata []profile.Metadata `json:"metadata,omitempty" help:"Container-level metadata tags, e.g. \"title\", \"artist\"; excludes artwork and chapters."`
	Artwork  []profile.Artwork  `json:"artwork,omitempty" help:"Artwork images embedded in the input, e.g. album cover art."`
}

Jump to

Keyboard shortcuts

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