pusher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Worker

func Worker(p *Pusher, input *WorkRequest, responseCh chan *WorkResponse)

this is thread safe as long as it doesn't mutate anything from input structs

Types

type Pusher

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

func New

func New(confCtx *config.Context, target ptypes.Transport) *Pusher

func (*Pusher) Close

func (p *Pusher) Close()

func (*Pusher) Run

func (p *Pusher) Run()

type StreamStatus

type StreamStatus struct {
	Stream string
	Sleep  time.Duration
	// contains filtered or unexported fields
}

type WorkRequest

type WorkRequest struct {
	SubscriptionId string
	Status         *StreamStatus
}

type WorkResponse

type WorkResponse struct {
	Request               *WorkRequest
	Error                 error
	Sleep                 time.Duration
	ShouldContinueRunning bool

	// if this is subscription stream, intelligence about
	// where the Target stands on subscribed streams that
	// had activity
	ActivityIntelligence []*StreamStatus

	SubscriptionId string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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