tasks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessAsset

func ProcessAsset(URL string) *tasks.Chain

func ProcessAudio

func ProcessAudio() *tasks.Signature

func ProcessImage

func ProcessImage() *tasks.Group

Types

type Tasker

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

func NewTasker

func NewTasker(cfg opendam.Config, server *machinery.Server, log *logrus.Entry) (*Tasker, error)

func (*Tasker) Close

func (t *Tasker) Close()

func (*Tasker) Download

func (t *Tasker) Download(url string) ([]byte, error)

func (*Tasker) DownloadFile

func (t *Tasker) DownloadFile(url string) (string, error)

func (Tasker) Extract

func (t Tasker) Extract(url, assetID string) error

The Extract task will take the media from its uploaded location, and the content type from its original source, and extract metadata from the file. Determining the assets kind and any additional meta data from the file.

func (Tasker) ImageAnalysis

func (t Tasker) ImageAnalysis(url, assetID string) error

The ImageAnalysis task will take an image file and run image analysis work to use as metadata

func (Tasker) ImageCreation

func (t Tasker) ImageCreation(url, assetID string, w, h int) error

The ImageCreation task will create a new image from the asset, upload it, and attach it as a format on the asset

func (Tasker) Soundwave

func (t Tasker) Soundwave(url, assetID string) error

The Soundwave task will create an image soundwave file for an audio asset, upload it, and attach it as a format to the asset

func (Tasker) Upload

func (t Tasker) Upload(URL string) (string, error)

The Upload task will upload the file at the given URL to the configured storage provider and return the location, if successful.

Jump to

Keyboard shortcuts

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