events

package
v3.0.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrateServedFrom

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

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

Syslog writes a MigrateServedFrom event to syslog.

type MigrateServedTypes

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

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

Syslog writes a MigrateServedTypes event to syslog.

type Reparent

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

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

Syslog writes a Reparent event to syslog.

Jump to

Keyboard shortcuts

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