Documentation ¶
Index ¶
Constants ¶
View Source
const ( CheckpointTypeAuto = "auto" CheckpointAutoResetTypeLatest = "latest" )
View Source
const (
KubernetesLeaderElectionType = "kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint interface { Save() Load() (*wrapper.ConcurrentSwissMap[uint16, *models.Offset], *wrapper.ConcurrentSwissMap[uint16, bool], bool) Clear() StartSchedule() StopSchedule() GetMetric() *CheckpointMetric }
type CheckpointMetric ¶
type LeaderElection ¶
type LeaderElection interface { Start() Stop() }
func NewLeaderElection ¶
func NewLeaderElection( config *config.Dcp, serviceDiscovery servicediscovery.ServiceDiscovery, bus EventBus.Bus, ) LeaderElection
type Stream ¶
type Stream interface { Open() Rebalance() Save() Close(bool) GetOffsets() (*wrapper.ConcurrentSwissMap[uint16, *models.Offset], *wrapper.ConcurrentSwissMap[uint16, bool], bool) GetObserver() couchbase.Observer GetMetric() (*Metric, int) UnmarkDirtyOffsets() GetCheckpointMetric() *CheckpointMetric IsOpen() bool }
func NewStream ¶
func NewStream(client couchbase.Client, metadata metadata.Metadata, config *config.Dcp, version *couchbase.Version, bucketInfo *couchbase.BucketInfo, vBucketDiscovery VBucketDiscovery, listener models.Listener, collectionIDs map[uint32]string, stopCh chan struct{}, bus EventBus.Bus, eventHandler models.EventHandler, ) Stream
type VBucketDiscovery ¶
type VBucketDiscovery interface { Get() []uint16 Close() GetMetric() *VBucketDiscoveryMetric }
func NewVBucketDiscovery ¶
Click to show internal directories.
Click to hide internal directories.