Documentation ¶
Index ¶
Constants ¶
View Source
const NewWindowVersion = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Preset string // kept for backward compatibility, will be removed later Window models.Window // contains filtered or unexported fields }
func NewCustomConfig ¶
func NewCustomConfigWithTimezone ¶ added in v0.11.0
func NewCustomConfigWithTimezone(c SimpleConfig) Config
func NewIncrementalConfig ¶
func NewIncrementalConfig() Config
func NewPresetConfig ¶
func (Config) GetSimpleConfig ¶ added in v0.11.0
func (c Config) GetSimpleConfig() SimpleConfig
func (Config) GetTruncateTo ¶
func (Config) GetVersion ¶
type CustomWindow ¶ added in v0.11.0
type CustomWindow struct {
// contains filtered or unexported fields
}
func FromCustomConfig ¶ added in v0.11.0
func FromCustomConfig(c SimpleConfig) (CustomWindow, error)
func NewCustomWindow ¶ added in v0.11.0
func NewCustomWindow(size, shiftBy duration.Duration, location *time.Location, truncateTo string) CustomWindow
TODO: this function is not used anywhere at the moment, consider removing it
func (CustomWindow) GetInterval ¶ added in v0.11.0
type IncrementalWindow ¶ added in v0.11.0
type IncrementalWindow struct {
// contains filtered or unexported fields
}
func FromSchedule ¶
func FromSchedule(schedule string) (IncrementalWindow, error)
func (IncrementalWindow) GetInterval ¶ added in v0.11.0
type OldWindow ¶ added in v0.11.0
type OldWindow struct {
// contains filtered or unexported fields
}
func FromBaseWindow ¶
type SimpleConfig ¶ added in v0.11.0
type SimpleConfig struct { Size string ShiftBy string Location string TruncateTo string // TODO: remove later if unused }
func NewSimpleConfig ¶ added in v0.11.0
func NewSimpleConfig(size, shiftBy, location, truncateTo string) (SimpleConfig, error)
type WithConfig ¶ added in v0.11.0
type WithConfig interface {
Config() SimpleConfig
}
Click to show internal directories.
Click to hide internal directories.