idles

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHourlyLoad

func CheckHourlyLoad(hour int)

func IsMinHour

func IsMinHour() bool

func Run

func Run(f func())

func RunTicker

func RunTicker(ticker *time.Ticker, f func())

func TestHourlyLoadMap

func TestHourlyLoadMap() map[int]*HourlyLoad

func TestMinLoadHours

func TestMinLoadHours() []int

func TestSetMinLoadHours

func TestSetMinLoadHours(minLoadHours []int)

Types

type HourlyLoad

type HourlyLoad struct {
	Hour   int       `json:"hour"`
	Avg    float64   `json:"avg"`
	Values []float64 `json:"values"`
}

Jump to

Keyboard shortcuts

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