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

package events

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

Package events defines the structures used for events dispatched from the wrangler package.

Index

Package Files

migrate.go migrate_syslog.go reparent.go reparent_syslog.go

type MigrateServedFrom Uses

type MigrateServedFrom struct {
    base.StatusUpdater

    KeyspaceName     string
    SourceShard      topo.ShardInfo
    DestinationShard topo.ShardInfo
    ServedType       topodatapb.TabletType
    Reverse          bool
}

MigrateServedFrom is an event that describes a single step in the process of adding or removing a forwarding rule to have certain ServedTypes served by another keyspace.

func (*MigrateServedFrom) Syslog Uses

func (ev *MigrateServedFrom) Syslog() (syslog.Priority, string)

Syslog writes a MigrateServedFrom event to syslog.

type MigrateServedTypes Uses

type MigrateServedTypes struct {
    base.StatusUpdater

    KeyspaceName      string
    SourceShards      []*topo.ShardInfo
    DestinationShards []*topo.ShardInfo
    ServedType        topodatapb.TabletType
    Reverse           bool
}

MigrateServedTypes is an event that describes a single step in the process of switching a ServedType from one set of shards to another.

func (*MigrateServedTypes) Syslog Uses

func (ev *MigrateServedTypes) Syslog() (syslog.Priority, string)

Syslog writes a MigrateServedTypes event to syslog.

type Reparent Uses

type Reparent struct {
    base.StatusUpdater

    ShardInfo            topo.ShardInfo
    OldMaster, NewMaster topodatapb.Tablet
    ExternalID           string
}

Reparent is an event that describes a single step in the reparent process.

func (*Reparent) Syslog Uses

func (r *Reparent) Syslog() (syslog.Priority, string)

Syslog writes a Reparent event to syslog.

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