timeframe

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 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