events

package
v0.16.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL