scheduler

package
v0.0.12-beta Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewAutomation

func CreateNewAutomation(
	name string,
	description string,
	hour uint8,
	minute uint8,
	days []Day,
	homescriptId string,
	owner string,
) error

Creates a new automation item

func Init

func Init() error

Initializes the scheduler

func InitLogger

func InitLogger(logger *logrus.Logger)

Types

type Day

type Day uint8
const (
	Sunday Day = iota
	Monday
	TuesDay
	Wednesday
	Thursday
	Friday
	Saturday
)

Jump to

Keyboard shortcuts

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