Documentation ¶
Overview ¶
Package events contains event structs used by the tabletmanager package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateChange ¶
type StateChange struct { // OldTablet is the topo record of the tablet before the change. OldTablet topodatapb.Tablet // NewTablet is the topo record representing the current state. NewTablet topodatapb.Tablet // Reason is an optional string that describes the source of the change. Reason string }
StateChange is an event that describes state changes in the tablet as seen by the TabletManager. It is triggered after the tablet has processed a state change, which might have been initiated internally, or when the tablet noticed that an external process modified its topo record.
Click to show internal directories.
Click to hide internal directories.