types

package
v0.0.0-...-2464bcb Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConvertFromEmpty = errors.New("convert from cannot be inferred or is empty")
	ErrConvertToEmpty   = errors.New("convert to cannot be empty")
)

Functions

func BucketTsFn

func BucketTsFn(width string) (func(time.Time, time.Time) time.Time, error)

func MergeConfig

func MergeConfig(datastream *pb.Datastream, reverse bool) []*pb.DatapointsConfigInstance

Types

type Interval

type Interval struct {
	Start     time.Time
	End       time.Time
	LeftOpen  bool
	RightOpen bool
}

func NewEmptyInterval

func NewEmptyInterval() Interval

func NewQueryInterval

func NewQueryInterval() Interval

func (Interval) Intersect

func (self Interval) Intersect(other Interval) Interval

func (Interval) IsEmpty

func (self Interval) IsEmpty() bool

Jump to

Keyboard shortcuts

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