Documentation ¶
Overview ¶
Package events defines the structures used for events relating directly to individual topology elements, like keyspaces, shards, and tablets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalVitessClusterChange ¶ added in v0.10.0
type ExternalVitessClusterChange struct { ClusterName string ExternalVitessCluster *topodatapb.ExternalVitessCluster Status string }
ExternalVitessClusterChange is an event that describes changes to a vitess cluster.
type KeyspaceChange ¶
type KeyspaceChange struct { KeyspaceName string Keyspace *topodatapb.Keyspace Status string }
KeyspaceChange is an event that describes changes to a keyspace.
type MetadataChange ¶
MetadataChange is an event that describes changes to topology metadata
type ShardChange ¶
type ShardChange struct { KeyspaceName string ShardName string Shard *topodatapb.Shard Status string }
ShardChange is an event that describes changes to a shard.
type TabletChange ¶
type TabletChange struct { Tablet *topodatapb.Tablet Status string }
TabletChange is an event that describes changes to a tablet's topo record. It is triggered when the CURRENT process changes ANY tablet's record. It is NOT triggered when a DIFFERENT process changes THIS tablet's record. To be notified when THIS tablet's record changes, even if it was changed by a different process, listen for go/vt/tabletmanager/events.StateChange.