pullrift

package
v0.0.0-...-90932cc Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidSampleRateError = errors.New("Invalid sample rate, it must be between 1 and 100")
View Source
var NoValidPushers = errors.New("No valid pushers created")

Functions

This section is empty.

Types

type PullRift

type PullRift struct {
	URL string
	// contains filtered or unexported fields
}

func NewPullRift

func NewPullRift(rcvURL string, confs []c.PullConf) (rift PullRift, err error)

Create new pull rift that sends to any number of push sockets

func (*PullRift) Close

func (r *PullRift) Close()

Close our sockets.

func (*PullRift) RiftSize

func (r *PullRift) RiftSize() (size int)

Returns the number of queues we are sending to

func (*PullRift) Run

func (r *PullRift) Run()

Main loop for pullRift.

type PushSocket

type PushSocket struct {
	URL        string
	SampleRate int
	// contains filtered or unexported fields
}

func NewPushSocket

func NewPushSocket(url string, sampleRate int) (push PushSocket, err error)

Jump to

Keyboard shortcuts

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