bridgemon

package
v4.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

Monitor is a bridge monitor, which maintains bridge data. It monitors an ARI bridge for events and keeps an internal cache of the bridge's data.

func New

func New(h *ari.BridgeHandle) *Monitor

New returns a new bridge monitor

func (*Monitor) Close

func (m *Monitor) Close()

Close shuts down a bridge monitor

func (*Monitor) Data

func (m *Monitor) Data() *ari.BridgeData

Data returns the current bridge data

func (*Monitor) Watch

func (m *Monitor) Watch() <-chan *ari.BridgeData

Watch returns a channel on which bridge data will be returned when events occur. This channel will be closed when the bridge or the monitor is destoyed.

NOTE: the user should NEVER close this channel directly.

Jump to

Keyboard shortcuts

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