workers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	StatsReader database.StatsReader
	Count       int
	StatsBuffer int
}

Worker defines the worker definition

func (*Worker) Process

func (w *Worker) Process(queryParams chan streamer.QueryParams) (statsChan chan database.Stat, errChan chan error)

Process is used to process query channel and fan out to multiple workers on a different goroutine

Jump to

Keyboard shortcuts

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