reducers

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionTranscoding health.ConditionType = "Transcoding"
	ConditionRealTime    health.ConditionType = "RealTime"
	ConditionNoErrors    health.ConditionType = "NoErrors"
)

Variables

View Source
var HealthReducer = health.ReducerFunc(reduceHealth)

Functions

func DefaultPipeline

func DefaultPipeline() (reducers []health.Reducer, starTimeOffset time.Duration)

func StatsReducer

func StatsReducer(statsWindows []time.Duration) health.ReducerFunc

Types

type TranscodeReducer

type TranscodeReducer struct{}

func (TranscodeReducer) Bindings

func (t TranscodeReducer) Bindings(golpExchange string) []event.BindingArgs

func (TranscodeReducer) Conditions

func (t TranscodeReducer) Conditions() []health.ConditionType

func (TranscodeReducer) Reduce

func (t TranscodeReducer) Reduce(current health.Status, _ interface{}, evtIface health.Event) (health.Status, interface{})

Jump to

Keyboard shortcuts

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