Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "sync", "ClusterMesh Sync", metrics.Metric(MetricsProvider), cell.Provide(new), )
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // BootstrapDuration tracks the duration in seconds until ready to serve requests. BootstrapDuration metric.Vec[metric.Gauge] }
Metrics contains metrics that should only be exported by the clustermesh-apiserver or kvstoremesh.
func MetricsProvider ¶
func MetricsProvider() Metrics
type SyncState ¶
type SyncState struct {
*lock.StoppableWaitGroup
}
SyncState is a wrapper around lock.StoppableWaitGroup used to keep track of the synchronization of various resources to the kvstore.
func (SyncState) Complete ¶
Complete returns true if all resources have been synchronized to the kvstore.
func (SyncState) WaitForResource ¶
WaitForResource adds a resource to the SyncState and returns a callback function that should be called when the resource has been synchronized.
Click to show internal directories.
Click to hide internal directories.