Documentation ¶
Index ¶
- Constants
- type Config
- type Message
- type Meta
- type MetricsWriter
- type Plugin
- func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin
- func (p *Plugin) Close() error
- func (p *Plugin) EnableMetrics(metrics MetricsWriter)
- func (p *Plugin) IsEnabled() bool
- func (p *Plugin) Name() string
- func (p *Plugin) ReadFromTopic(topic string, consumerGroupID string, messageC chan<- Message)
- func (p *Plugin) ReadFromTopicEnd(topic string, consumerGroupID string, messageC chan<- Message)
- func (p *Plugin) ReadFromTopicWithContext(ctx context.Context, topic string, consumerGroupID string, useLastOffset bool, ...)
- func (p *Plugin) Start() error
- func (p *Plugin) WriteToTopic(topic string, key string, value string) error
- func (p *Plugin) WriteToTopicAsync(topic string, key string, value string)
Constants ¶
View Source
const Name = "kafka"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type MetricsWriter ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) EnableMetrics ¶
func (p *Plugin) EnableMetrics(metrics MetricsWriter)
func (*Plugin) ReadFromTopic ¶
func (*Plugin) ReadFromTopicEnd ¶ added in v1.18.1
func (*Plugin) ReadFromTopicWithContext ¶ added in v1.10.0
func (*Plugin) WriteToTopic ¶
Click to show internal directories.
Click to hide internal directories.