freeze

package
v0.0.0-...-24f3bcb Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	Windows []Window `yaml:"freeze_calendar" validate:"omitempty,dive"`
}

func LoadCalendar

func LoadCalendar(reader io.Reader) (*Calendar, error)

type Window

type Window struct {
	Name  string    `yaml:"name" validate:"required"`
	Start time.Time `yaml:"starts_at" validate:"required"`
	End   time.Time `yaml:"ends_at" validate:"required,gtcsfield=Start"`
	Scope []string  `yaml:"scope,omitempty"`
}

func (Window) String

func (w Window) String() (result string)

Jump to

Keyboard shortcuts

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