schedule

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateInWindow    = "in_window"
	StateOutOfWindow = "out_of_window"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockTime

type ClockTime struct {
	Hour   int
	Minute int
}

func ParseClockTime

func ParseClockTime(value string) (ClockTime, error)

type Window

type Window struct {
	From  ClockTime
	Until ClockTime
}

func ParseWindow

func ParseWindow(from, until string) (Window, error)

func (Window) StateAt

func (w Window) StateAt(now time.Time, loc *time.Location) string

func (Window) String

func (w Window) String() string

Jump to

Keyboard shortcuts

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