Documentation
¶
Index ¶
- Variables
- func New(ctx context.Context, cfg keyword.ProcessConfig, taskType string) (module.Module, error)
- type EventProcessor
- type IProcessor
- type Processor
- func (client *Processor) AddInput(input <-chan interface{})
- func (client *Processor) AddOutput(output chan<- interface{})
- func (client *Processor) ID() string
- func (client *Processor) Reload(cfg interface{})
- func (client *Processor) Start() error
- func (client *Processor) Stop()
- func (client *Processor) Wait()
Constants ¶
This section is empty.
Variables ¶
View Source
var CounterProcess = uint64(0) // 计数器,读的行数
Functions ¶
Types ¶
type EventProcessor ¶
type EventProcessor struct {
// contains filtered or unexported fields
}
func NewEventProcessor ¶
func NewEventProcessor(cfg keyword.ProcessConfig) (*EventProcessor, error)
func (*EventProcessor) Handle ¶
func (client *EventProcessor) Handle(event *module.LogEvent) (interface{}, error)
func (*EventProcessor) Send ¶
func (client *EventProcessor) Send(event interface{}, outputs []chan<- interface{})
type IProcessor ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) AddInput ¶
func (client *Processor) AddInput(input <-chan interface{})
AddInput. implement module interface
func (*Processor) AddOutput ¶
func (client *Processor) AddOutput(output chan<- interface{})
AddOutput add one output
Click to show internal directories.
Click to hide internal directories.