intervals

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IntervalTimeFormat = time.RFC3339Nano
)

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.Intervals, error)

Types

type Base

type Base struct {
	Typ builder.ComponentType `json:"type,omitempty"`
}

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type Interval

type Interval string

Interval represents a druid interval.

func NewInterval

func NewInterval() *Interval

NewInterval instantiate a new interval.

func (*Interval) SetInterval

func (i *Interval) SetInterval(start, end time.Time) *Interval

func (*Interval) SetIntervalWithString

func (i *Interval) SetIntervalWithString(start, end string) *Interval

type Intervals

type Intervals struct {
	Base
	Intervals []*Interval `json:"intervals,omitempty"`
}

func NewIntervals

func NewIntervals() *Intervals

func (*Intervals) SetIntervals

func (i *Intervals) SetIntervals(intervals []*Interval) *Intervals

Jump to

Keyboard shortcuts

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