go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vttablet/tabletmanager/events Index | Files

package events

import "gopkg.in/src-d/go-vitess.v1/vt/vttablet/tabletmanager/events"

Package events contains event structs used by the tabletmanager package.

Index

Package Files

state_change.go

type StateChange Uses

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.

Package events imports 1 packages (graph) and is imported by 1 packages. Updated 2019-06-13. Refresh now. Tools for package owners.