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 helpers.Bus, ) LeaderElection
type Stream ¶
type Stream interface { Open() Rebalance() Save() Close() GetOffsets() (*wrapper.ConcurrentSwissMap[uint16, *models.Offset], *wrapper.ConcurrentSwissMap[uint16, bool], bool) GetObserver() couchbase.Observer GetMetric() *Metric UnmarkDirtyOffsets() GetCheckpointMetric() *CheckpointMetric }
type VBucketDiscovery ¶
type VBucketDiscovery interface { Get() []uint16 Close() GetMetric() *VBucketDiscoveryMetric }
func NewVBucketDiscovery ¶
Click to show internal directories.
Click to hide internal directories.