generator

package
v0.0.0-...-dc806d7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAlreadyStarted = "already started"
	ErrNotStarted     = "not started"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func New

func New(

	delayBeforeNextGenerationMinRangeBorderMs uint,
	delayBeforeNextGenerationMaxRangeBorderMs uint,

	generatedNumberMinRangeBorder uint,
	generatedNumberMaxRangeBorder uint,

	outputChannelSize int,
) (g *Generator, err error)

func (*Generator) GetOutputChannel

func (g *Generator) GetOutputChannel() chan uint

func (*Generator) Start

func (g *Generator) Start() (err error)

func (*Generator) Stop

func (g *Generator) Stop() (err error)

Jump to

Keyboard shortcuts

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