models

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTime

func ParseTime(timeStr string) (int, int, int, error)

Types

type Task

type Task struct {
	Name    string
	Handler func()

	TickerType           TickerType
	Interval             time.Duration
	Hour, Minute, Second int
}

type TickerType

type TickerType int
const (
	TickerInterval TickerType = 0
	TickerTime     TickerType = 1
)

Jump to

Keyboard shortcuts

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