Documentation ¶
Index ¶
- Variables
- func Exit()
- func Initialize(internalPc *conf.InternalProcessorConfig, pc *models.ProcessorCallbacks) error
- func MetricsClient() *utils.MetricsClient
- func NewConsumerGroupHandler(logs *log.Logger, setupFunc func() error, ...) sarama.ConsumerGroupHandler
- func PassToDefaultOutputTopic(ctx context.Context, record *models.Record) error
- func PassToOutputTopic(ctx context.Context, name string, record *models.Record) error
- func Run() error
- func Work(ctx context.Context, consumerConfig *conf.ConsumerConfig, workerIndex int, ...)
- type Cron
- type JoinWorker
- type Producer
- type Watermark
- type WorkerMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRedisConfNotInitialized = fmt.Errorf("redis config is not initialized") ErrConsumerNotify = fmt.Errorf("consumer exits with notify") )
Functions ¶
func Initialize ¶
func Initialize(internalPc *conf.InternalProcessorConfig, pc *models.ProcessorCallbacks) error
func MetricsClient ¶ added in v0.5.7
func MetricsClient() *utils.MetricsClient
func NewConsumerGroupHandler ¶
func PassToOutputTopic ¶
Types ¶
type JoinWorker ¶ added in v0.5.1
type JoinWorker struct {
// contains filtered or unexported fields
}
func NewJoinWorker ¶ added in v0.5.1
func NewJoinWorker(w *Watermark, s state.StateStore, expierTime int) *JoinWorker
func (*JoinWorker) JoinWorkerProcessCallback ¶ added in v0.5.1
type Watermark ¶ added in v0.5.1
type Watermark struct {
// contains filtered or unexported fields
}
func NewWatermark ¶ added in v0.5.1
type WorkerMeta ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.