events

package
v0.0.0-...-bc668d9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2015 License: BSD-3-Clause Imports: 6 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

	Keyspace         topo.KeyspaceInfo
	SourceShard      topo.ShardInfo
	DestinationShard topo.ShardInfo
	ServedType       topo.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

	Keyspace          topo.KeyspaceInfo
	SourceShards      []*topo.ShardInfo
	DestinationShards []*topo.ShardInfo
	ServedType        topo.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 topo.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