package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev

# Functions

FilterByReplicationLag filters the list of TabletStats by TabletStats.Stats.SecondsBehindMaster.
IsReplicationLagHigh verifies that the given TabletStats refers to a tablet with high replication lag, i.e.
NewCellTabletsWatcher returns a TopologyWatcher that monitors all the tablets in a cell, and starts refreshing.
NewFakeHealthCheck returns the fake healthcheck object.
NewFilterByShard creates a new FilterByShard on top of an existing TabletRecorder.
NewHealthCheck creates a new HealthCheck object.
NewShardReplicationWatcher returns a TopologyWatcher that monitors the tablets in a cell/keyspace/shard, and starts refreshing.
NewTabletStatsCache creates a TabletStatsCache, and registers it as HealthCheckStatsListener of the provided healthcheck.
NewTabletStatsCacheDoNotSetListener is identical to NewTabletStatsCache but does not automatically set the returned object as listener for "hc".
NewTopologyWatcher returns a TopologyWatcher that monitors all the tablets in a cell, and starts refreshing.
RemoveUnhealthyTablets filters all unhealthy tablets out.
TabletToMapKey creates a key to the map from tablet's host and ports.
TrivialStatsUpdate returns true iff the old and new TabletStats haven't changed enough to warrant re-calling FilterByReplicationLag.

# Constants

DefaultTopoReadConcurrency can be used as default value for the topoReadConcurrency parameter of a TopologyWatcher.
HealthCheckTemplate is the HTML code to display a TabletsCacheStatusList.

# Structs

FakeHealthCheck implements discovery.HealthCheck.
FilterByShard is a TabletRecorder filter that filters tablets by keyspace/shard.
HealthCheckImpl performs health checking and notifies downstream components about any changes.
TabletsCacheStatus is the current tablets for a cell/target.
TabletStats is returned when getting the set of tablets.
TabletStatsCache is a HealthCheckStatsListener that keeps both the current list of available TabletStats, and a serving list: - for master tablets, only the current master is kept.
TopologyWatcher polls tablet from a configurable set of tablets periodically.

# Interfaces

HealthCheck defines the interface of health checking module.
HealthCheckStatsListener is the listener to receive health check stats update.
TabletRecorder is the part of the HealthCheck interface that can add or remove tablets.

# Type aliases

TabletsCacheStatusList is used for sorting.
TabletStatsList is used for sorting.