queue

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventQueue

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

EventQueue represents queue obj for Normalized Events

func (*EventQueue) Dequeue

func (eq *EventQueue) Dequeue()

Dequeue reads event from queue

func (*EventQueue) Enqueue

func (eq *EventQueue) Enqueue(evt event.NormalizedEvent)

Enqueue writes event to queue

func (*EventQueue) GetReporter added in v0.27.0

func (eq *EventQueue) GetReporter() func(time.Duration)

GetReporter return the function to print reports

func (*EventQueue) Init

func (eq *EventQueue) Init(target []event.Channel, maxQueueLength int, eps int)

Init setup the eventqueue

type Reporter added in v0.27.0

type Reporter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Reporter represent reporter object

func (*Reporter) Init added in v0.27.0

func (r *Reporter) Init(nChans int, maxWait, maxDequeueDuration time.Duration, eps int, queueLengthFunc func() int)

Init initialises Reporter

func (*Reporter) PrintReport added in v0.27.0

func (r *Reporter) PrintReport(interval time.Duration)

PrintReport regularly prints report content

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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