queue

package
v0.0.0-...-917b3cb Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Submit(i *tx.Item) bool
	Process()
	Empty() bool
}

func NewProcessor

func NewProcessor(sender route.Sender, compositions []cutter.Composition) Processor

type Scheduler

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

func NewScheduler

func NewScheduler(processor Processor, maxWaitTime time.Duration, queueSize int) *Scheduler

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(i *tx.Item)

func (*Scheduler) Start

func (s *Scheduler) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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