conductor

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWorker

func StartWorker(redisOpts asynq.RedisConnOpt, concurrency int, runner *tasks.EncoderRunner, log logging.Logger)

func WithLogger

func WithLogger(logger logging.KVLogger) func(options *ConductorOptions)

Types

type Conductor

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

func NewConductor

func NewConductor(
	redisOpts asynq.RedisConnOpt, incoming <-chan *manager.TranscodingRequest, library *library.Library,
	optionFuncs ...func(*ConductorOptions),
) (*Conductor, error)

func (*Conductor) DispatchNextTask

func (c *Conductor) DispatchNextTask() error

func (*Conductor) ProcessNextResult

func (c *Conductor) ProcessNextResult() error

func (*Conductor) PutLoad

func (c *Conductor) PutLoad() error

func (*Conductor) Start

func (c *Conductor) Start()

func (*Conductor) Stop

func (c *Conductor) Stop()

type ConductorOptions

type ConductorOptions struct {
	Logger logging.KVLogger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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