workers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageLocal  = "local"
	StorageRemote = "remote"
)

Variables

View Source
var (
	TranscodingRunning = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "transcoding_running",
	})
	TranscodingDownloading = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "transcoding_downloading",
	})

	TranscodingSpentSeconds = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "transcoded_spent_seconds",
	})
	TranscodedSizeMB = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "transcoded_size_mb",
	})
	TranscodedCount = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "transcoded_count",
	})

	TranscodingErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "transcoding_error_count",
	}, []string{"stage"})
)

Functions

func RegisterMetrics

func RegisterMetrics()

func SetLogger

func SetLogger(l *zap.SugaredLogger)

func SpawnEncoderWorkers

func SpawnEncoderWorkers(wnum int, mgr *manager.VideoManager) chan<- interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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