Documentation
¶
Index ¶
- type DrainCompleteFunc
- type FlushCallback
- type FlushEventHandler
- type FlushEventHandlerOptions
- type FlushEventHandlers
- func (f *FlushEventHandlers) AddHandler(handler FlushEventHandler)
- func (f *FlushEventHandlers) OnDrainComplete(fn DrainCompleteFunc)
- func (f *FlushEventHandlers) OnFlushSuccess(ctx context.Context, events []models.SinkMessage) error
- func (f *FlushEventHandlers) Start(ctx context.Context) error
- func (f *FlushEventHandlers) WaitForDrain(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrainCompleteFunc ¶
type DrainCompleteFunc func()
type FlushCallback ¶
type FlushCallback func(context.Context, []models.SinkMessage) error
type FlushEventHandler ¶
type FlushEventHandler interface { OnFlushSuccess(ctx context.Context, events []models.SinkMessage) error Start(context.Context) error WaitForDrain(context.Context) error }
func NewFlushEventHandler ¶
func NewFlushEventHandler(opts FlushEventHandlerOptions) (FlushEventHandler, error)
type FlushEventHandlers ¶
type FlushEventHandlers struct {
// contains filtered or unexported fields
}
func NewFlushEventHandlers ¶
func NewFlushEventHandlers() *FlushEventHandlers
func (*FlushEventHandlers) AddHandler ¶
func (f *FlushEventHandlers) AddHandler(handler FlushEventHandler)
func (*FlushEventHandlers) OnDrainComplete ¶
func (f *FlushEventHandlers) OnDrainComplete(fn DrainCompleteFunc)
func (*FlushEventHandlers) OnFlushSuccess ¶
func (f *FlushEventHandlers) OnFlushSuccess(ctx context.Context, events []models.SinkMessage) error
func (*FlushEventHandlers) WaitForDrain ¶
func (f *FlushEventHandlers) WaitForDrain(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.