services

package
v0.0.0-...-4ff34b2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteFFmpegProbe

func ExecuteFFmpegProbe(ctx *ServiceContext, conf *config.FFmpegConfig, filename string) (*map[string]interface{}, error)

func ExecuteFFmpegTranscode

func ExecuteFFmpegTranscode(ctx *ServiceContext, conf *config.FFmpegConfig, cmd string) (*environment.ExecutionResult, error)

ExecuteFFmpeg -

func ExecuteRife

func ExecuteRife(ctx *ServiceContext, conf *config.RifeConfig, ratio int, uhd bool, skip bool, filename string, outputfilename string) error

func ExecuteVideo2x

func ExecuteVideo2x(ctx *ServiceContext, conf *config.Video2xConfig, driver string, ratio int, filename string, outputfilename string) error

Types

type ServiceContext

type ServiceContext struct {
	Environment environment.Environment
	Tracker     *Tracker
}

ServiceContext - context for a services

func NewServiceContext

func NewServiceContext(env environment.Environment, tracker *Tracker) *ServiceContext

type Tracker

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

func NewTracker

func NewTracker(client zbc.Client, job entities.Job) *Tracker

func (*Tracker) Crit

func (self *Tracker) Crit(msg string, ctx ...interface{})

func (*Tracker) Debug

func (self *Tracker) Debug(msg string, ctx ...interface{})

func (*Tracker) Error

func (self *Tracker) Error(msg string, ctx ...interface{})

func (*Tracker) Info

func (self *Tracker) Info(msg string, ctx ...interface{})

func (*Tracker) Progress

func (self *Tracker) Progress(progress float64) error

func (*Tracker) Warn

func (self *Tracker) Warn(msg string, ctx ...interface{})

Jump to

Keyboard shortcuts

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