events

package
v2.0.0-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: BSD-3-Clause 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       pb.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        pb.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 pb.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