timeframe

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 4 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       hour  `uri:"from" required:"true"`
	End         hour  `uri:"to"`
	EveryXHours int   `uri:"every-x-hours" default:"1"`
	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