timeframe

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeFrame

type TimeFrame struct {
	Start       time.Time `uri:"from" required:"true" format:"2006-01-02T15"`
	End         time.Time `uri:"to" format:"2006-01-02T15"`
	EveryXHours int       `uri:"every-x-hours" default:"1"`
	Daily       bool      `uri:"daily"`
	OnHours     []int     `uri:"on-hours"`
	OffHours    []int     `uri:"off-hours"`
}

func (TimeFrame) Generate

func (tf TimeFrame) Generate() []time.Time

func (TimeFrame) Validate

func (tf TimeFrame) Validate() error

Jump to

Keyboard shortcuts

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