Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchItem ¶
type BatchItem struct { Action *elasticsearch2.Action Bytes []byte }
type Bulk ¶
type Bulk struct {
// contains filtered or unexported fields
}
func (*Bulk) AddActions ¶
func (b *Bulk) AddActions( ctx *replication.ListenerContext, eventTime time.Time, actions []elasticsearch2.Action, tableNamespace, tableName string, isLastChunk bool, )
type Indexer ¶
type Indexer interface { StartBulk() AddActions( ctx *replication.ListenerContext, eventTime time.Time, actions []elasticsearch2.Action, tableNamespace, tableName string, isLastChunk bool, ) GetMetric() Metric Close() }
type Metric ¶
type Metric interface { SetProcessLatency(latency int64) SetBulkRequestProcessLatency(latency int64) PrometheusCollectors() []prometheus.Collector // contains filtered or unexported methods }
type Option ¶
type Option func(*Bulk)
func WithResponseHandler ¶
func WithResponseHandler(respHandler elasticsearch.ResponseHandler) Option
Click to show internal directories.
Click to hide internal directories.