Documentation
¶
Index ¶
- type AggregationProcess
- func (a *AggregationProcess) AggregateMsgByFlowKey(message *entities.Message) error
- func (a *AggregationProcess) DeleteFlowKeyFromMap(flowKey FlowKey)
- func (a *AggregationProcess) ForAllRecordsDo(callback FlowKeyRecordMapCallBack) error
- func (a *AggregationProcess) Start()
- func (a *AggregationProcess) Stop()
- type FlowKey
- type FlowKeyRecordMapCallBack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationProcess ¶ added in v0.3.1
type AggregationProcess struct {
// contains filtered or unexported fields
}
func InitAggregationProcess ¶
func InitAggregationProcess(messageChan chan *entities.Message, workerNum int, correlateFields []string) (*AggregationProcess, error)
InitAggregationProcess takes in message channel (e.g. from collector) as input channel, workerNum(number of workers to process message) and correlateFields (fields to be correlated and filled).
func (*AggregationProcess) AggregateMsgByFlowKey ¶ added in v0.3.1
func (a *AggregationProcess) AggregateMsgByFlowKey(message *entities.Message) error
AggregateMsgByFlowKey gets flow key from records in message and stores in cache
func (*AggregationProcess) DeleteFlowKeyFromMap ¶ added in v0.3.1
func (a *AggregationProcess) DeleteFlowKeyFromMap(flowKey FlowKey)
func (*AggregationProcess) ForAllRecordsDo ¶ added in v0.3.1
func (a *AggregationProcess) ForAllRecordsDo(callback FlowKeyRecordMapCallBack) error
ForAllRecordsDo takes in callback function to process the operations to flowkey->records pairs in the map
func (*AggregationProcess) Start ¶ added in v0.3.1
func (a *AggregationProcess) Start()
func (*AggregationProcess) Stop ¶ added in v0.3.1
func (a *AggregationProcess) Stop()
Click to show internal directories.
Click to hide internal directories.