vitess.io/vitess@v0.16.2/go/vt/topotools/events/reparent.go (about)

     1  /*
     2  Copyright 2019 The Vitess Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package events defines the structures used for events dispatched from the
    18  // wrangler package.
    19  package events
    20  
    21  import (
    22  	base "vitess.io/vitess/go/vt/events"
    23  	"vitess.io/vitess/go/vt/topo"
    24  
    25  	topodatapb "vitess.io/vitess/go/vt/proto/topodata"
    26  )
    27  
    28  // Reparent is an event that describes a single step in the reparent process.
    29  type Reparent struct {
    30  	base.StatusUpdater
    31  
    32  	ShardInfo              topo.ShardInfo
    33  	OldPrimary, NewPrimary *topodatapb.Tablet
    34  	ExternalID             string
    35  }