horizontal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow interface {
	RegisterHandler(h stream.FlowEventHandler)
	Run(ctx context.Context, block bool) error
}

Flow is same as Flow but makes sure the handlers get only partitioned data it's not able to distinguish between the the list and watch because of the nature of other members joining and leaving might need to process the data of an old member who just left

func NewEtcdFlowProcessor

func NewEtcdFlowProcessor(ctx context.Context, cli *clientv3.Client, path string, consumerName string, fromEnd bool, logger *logrus.Entry, opts ...lb.Option) (Flow, error)

type FlowProcessorProvider

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

func (*FlowProcessorProvider) RegisterHandler

func (f *FlowProcessorProvider) RegisterHandler(h stream.FlowEventHandler)

only can be run in the beginning not dynamic

func (*FlowProcessorProvider) Run

func (f *FlowProcessorProvider) Run(ctx context.Context, block bool) error

Jump to

Keyboard shortcuts

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