Documentation ¶
Index ¶
- Variables
- func DefaultMapper(event couchbase.Event) []message.KafkaMessage
- type Connector
- type ConnectorBuilder
- func (c *ConnectorBuilder) Build() (Connector, error)
- func (c *ConnectorBuilder) SetLogger(l *logrus.Logger) *ConnectorBuilder
- func (c *ConnectorBuilder) SetMapper(mapper Mapper) *ConnectorBuilder
- func (c *ConnectorBuilder) SetSinkResponseHandler(sinkResponseHandler kafka.SinkResponseHandler) *ConnectorBuilder
- type DcpEventHandler
- func (h *DcpEventHandler) AfterRebalanceEnd()
- func (h *DcpEventHandler) AfterRebalanceStart()
- func (h *DcpEventHandler) AfterStreamStart()
- func (h *DcpEventHandler) AfterStreamStop()
- func (h *DcpEventHandler) BeforeRebalanceEnd()
- func (h *DcpEventHandler) BeforeRebalanceStart()
- func (h *DcpEventHandler) BeforeStreamStart()
- func (h *DcpEventHandler) BeforeStreamStop()
- type Mapper
Constants ¶
This section is empty.
Variables ¶
View Source
var MetadataTypeKafka = "kafka"
Functions ¶
func DefaultMapper ¶ added in v1.1.11
func DefaultMapper(event couchbase.Event) []message.KafkaMessage
Types ¶
type Connector ¶
type Connector interface { Start() Close() GetDcpClient() dcpCouchbase.Client }
type ConnectorBuilder ¶ added in v1.1.11
type ConnectorBuilder struct {
// contains filtered or unexported fields
}
func NewConnectorBuilder ¶ added in v1.1.11
func NewConnectorBuilder(config any) *ConnectorBuilder
func (*ConnectorBuilder) Build ¶ added in v1.1.11
func (c *ConnectorBuilder) Build() (Connector, error)
func (*ConnectorBuilder) SetLogger ¶ added in v1.1.11
func (c *ConnectorBuilder) SetLogger(l *logrus.Logger) *ConnectorBuilder
func (*ConnectorBuilder) SetMapper ¶ added in v1.1.11
func (c *ConnectorBuilder) SetMapper(mapper Mapper) *ConnectorBuilder
func (*ConnectorBuilder) SetSinkResponseHandler ¶ added in v1.1.22
func (c *ConnectorBuilder) SetSinkResponseHandler(sinkResponseHandler kafka.SinkResponseHandler) *ConnectorBuilder
type DcpEventHandler ¶ added in v0.0.65
type DcpEventHandler struct {
// contains filtered or unexported fields
}
func (*DcpEventHandler) AfterRebalanceEnd ¶ added in v0.0.65
func (h *DcpEventHandler) AfterRebalanceEnd()
func (*DcpEventHandler) AfterRebalanceStart ¶ added in v0.0.65
func (h *DcpEventHandler) AfterRebalanceStart()
func (*DcpEventHandler) AfterStreamStart ¶ added in v0.0.65
func (h *DcpEventHandler) AfterStreamStart()
func (*DcpEventHandler) AfterStreamStop ¶ added in v0.0.65
func (h *DcpEventHandler) AfterStreamStop()
func (*DcpEventHandler) BeforeRebalanceEnd ¶ added in v0.0.65
func (h *DcpEventHandler) BeforeRebalanceEnd()
func (*DcpEventHandler) BeforeRebalanceStart ¶ added in v0.0.65
func (h *DcpEventHandler) BeforeRebalanceStart()
func (*DcpEventHandler) BeforeStreamStart ¶ added in v0.0.65
func (h *DcpEventHandler) BeforeStreamStart()
func (*DcpEventHandler) BeforeStreamStop ¶ added in v0.0.65
func (h *DcpEventHandler) BeforeStreamStop()
Click to show internal directories.
Click to hide internal directories.