timetable

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID        int
	TimeRange timerange.TimeRange
	Pause     time.Duration
}

type SessionSlice

type SessionSlice []Session

func Generate

func Generate(start, end time.Time, pause, duration, sessionLength time.Duration, excludes []timerange.TimeRange) (SessionSlice, error)

func (SessionSlice) Len

func (s SessionSlice) Len() int

func (SessionSlice) Less

func (s SessionSlice) Less(i, j int) bool

func (SessionSlice) String

func (s SessionSlice) String() string

func (SessionSlice) Swap

func (s SessionSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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