interval

package
v0.21.14 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data added in v0.19.0

type Data[V any] struct {
	In   Interval
	Data V
}

type Interval

type Interval struct {
	// contains filtered or unexported fields
}

func NewInterval

func NewInterval(start, end time.Time) Interval

func (Interval) Empty added in v0.19.0

func (i Interval) Empty() bool

func (Interval) End

func (i Interval) End() time.Time

func (Interval) Equal added in v0.19.0

func (i Interval) Equal(i2 Interval) bool

func (Interval) IsAfter added in v0.19.0

func (i Interval) IsAfter(i2 Interval) bool

IsAfter compares 2 intervals if one is after the another. Interval 2 can start at the end of interval 1 or after

func (Interval) Start

func (i Interval) Start() time.Time

type Range added in v0.19.0

type Range[V any] []Data[V]

func (Range[V]) UpdateDataFrom added in v0.19.0

func (r Range[V]) UpdateDataFrom(r2 Range[V]) Range[V]

UpdateDataFrom can be simplified further, but as this is a transient fix we will roll out a proper update to this to match range more efficiently

func (Range[V]) Values added in v0.19.0

func (r Range[V]) Values() []V

Jump to

Keyboard shortcuts

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