waiter

package
v0.0.0-...-c66ceb2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNone  = "none"
	TypeAudio = "audio"
)

Waiter types

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

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

Audio is a waiter that does nothing

func NewAudio

func NewAudio(logger logging.Logger, threshold float32) *Audio

NewAudio creates a new Audio waiter

func (*Audio) Wait

func (a *Audio) Wait(done chan struct{}, cancel chan struct{}) error

Wait for a peak in the incoming audio stream

type None

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

None is a waiter that does nothing

func NewNone

func NewNone(logger logging.Logger) *None

NewNone creates a new None waiter

func (*None) Wait

func (t *None) Wait(done chan struct{}, cancel chan struct{}) error

Wait waits for a specific event to happen. In this case, nothing.

Jump to

Keyboard shortcuts

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