Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStack ¶
NewStack is the preferred way to create a new stack instance. quit channel will be 'notified' (by closing it) if the ingestion channel is closed AND the remaining data has been flushed using the callback
func NewWindowedStack ¶
func NewWindowedStack(o ...*WindowedStackOptions) (w *windowedStack)
Types ¶
type Config ¶
type Config struct { //MaxStack represents the number of items that must be stacked before executing the callback MaxStack int //MaxIngestionBuffer is the buzzer size of the channel that receives the data MaxIngestionBuffer int }
Config used to configure the stack
type GroupFlusher ¶
type GroupFlusher interface {
Flush([]Grouped)
}
type Grouped ¶
type Grouped interface { Group() string SetGroup(string) Size() int64 FlushAction() GroupFlusher }
Click to show internal directories.
Click to hide internal directories.