rates

package
v0.0.0-...-525fac3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstTimer

type ConstTimer struct {
	Interval int
}

func (ConstTimer) Run

func (t ConstTimer) Run(pin chan int)

type Rate

type Rate struct {
	Consumer       chan int
	ControlChannel chan bool
}

func (Rate) IncDecRate

func (r Rate) IncDecRate(incT Timer, decT Timer, min int, max int)

func (Rate) SingleRate

func (r Rate) SingleRate(t Timer)

type Timer

type Timer interface {
	Run(chan int)
}

Jump to

Keyboard shortcuts

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