Documentation
¶
Index ¶
- func New(ctx activity.InitContext) (activity.Activity, error)
- func NewSlidingTimeWindow(function string, settings *window.Settings) (window.TimeWindow, error)
- func NewSlidingWindow(function string, settings *window.Settings) (window.Window, error)
- func NewTumblingTimeWindow(function string, settings *window.Settings) (window.TimeWindow, error)
- func NewTumblingWindow(function string, settings *window.Settings) (window.Window, error)
- type Activity
- type Input
- type Output
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSlidingTimeWindow ¶
NewSlidingTimeWindow creates a new sliding time window, all time windows are managed externally and are progressed using the NextBlock() method
func NewSlidingWindow ¶
func NewTumblingTimeWindow ¶
NewTumblingTimeWindow creates a new tumbling time window, all time windows are managed externally and are progressed using the NextBlock() method
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
Activity is an Activity that is used to Aggregate a message to the console
type Settings ¶
type Settings struct {
Function string `md:"function,required,allowed(avg,sum,min,max,count,accumulate)"`
WindowType string `md:"windowType,required,allowed(tumbling,sliding,timeTumbling,timeSliding)"`
WindowSize int `md:"windowSize,required"`
Resolution int `md:"resolution"`
ProceedOnlyOnEmit bool `md:"proceedOnlyOnEmit"`
AdditionalSettings string `md:"additionalSettings"`
}
we can generate json from this! - we could also create a "validate-able" object from this
Click to show internal directories.
Click to hide internal directories.