simple

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDisruptorBufferSize  = 8192
	DefaultDisruptorConcurrency = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AckConsumer

type AckConsumer struct {
	// contains filtered or unexported fields
}

func (AckConsumer) Consume

func (c AckConsumer) Consume(lower, upper int64)

type DisruptorEvent

type DisruptorEvent struct {
	// contains filtered or unexported fields
}

type DisruptorPipeline

type DisruptorPipeline struct {
	*pipeline.BasePipeline
	// contains filtered or unexported fields
}

DisruptorPipeline gets events from input and sends them to output through disruptor.

func NewDisruptorPipeline

func NewDisruptorPipeline() *DisruptorPipeline

func (*DisruptorPipeline) Ack

func (p *DisruptorPipeline) Ack(msg *core.Message, err error)

func (*DisruptorPipeline) Configure

func (p *DisruptorPipeline) Configure(config core.StringMap) (err error)

func (*DisruptorPipeline) Process

func (p *DisruptorPipeline) Process(msg *core.Message)

func (*DisruptorPipeline) StartPipeline

func (p *DisruptorPipeline) StartPipeline() (err error)

func (*DisruptorPipeline) StopPipeline

func (p *DisruptorPipeline) StopPipeline()

type DisruptorPipelineConfig

type DisruptorPipelineConfig struct {
	Concurrency int
	BufferSize  int
}

type ProcessConsumer

type ProcessConsumer struct {
	// contains filtered or unexported fields
}

func (ProcessConsumer) Consume

func (c ProcessConsumer) Consume(lower, upper int64)

type SendConsumer

type SendConsumer struct {
	// contains filtered or unexported fields
}

func (SendConsumer) Consume

func (c SendConsumer) Consume(lower, upper int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL