Help us shape the future of Go! Take the 2026 Go Developer Survey

monad

package module
v0.0.0-...-261d32f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Min            uint64
	Max            uint64
	Desired        uint64
	Interval       time.Duration
	CoolDownPeriod time.Duration
	WarmFn         func() bool
	DesireFn       func(n uint64)
}

type Monad

type Monad struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *Monad

func (*Monad) Exit

func (m *Monad) Exit()

func (*Monad) Reload

func (m *Monad) Reload(newCfg *Config)

Jump to

Keyboard shortcuts

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