processing

package
v0.0.0-...-0741b92 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageBackend

type ImageBackend interface {
	AutoRotate(file *entity.ProcessingFile) error
	Resize(file *entity.ProcessingFile, maxLength int) error
	Convert(file *entity.ProcessingFile, newMimeType string) error
}

func NewImageBackend

func NewImageBackend() ImageBackend

type Processing

type Processing struct {
	Image ImageBackend
	Video VideoBackend
}

type VideoBackend

type VideoBackend interface {
	Transcode(file *entity.ProcessingFile, maxLength int) error
	Convert(file *entity.ProcessingFile, newMimeType string) error
}

func NewVideoBackend

func NewVideoBackend() VideoBackend

Jump to

Keyboard shortcuts

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