events

package
v0.0.0-...-d271c08 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2014 License: BSD-3-Clause Imports: 7 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 MultiRestore

type MultiRestore struct {
	base.StatusUpdater

	Tablet topo.Tablet
	Args   actionnode.MultiRestoreArgs
}

MultiRestore is an event that triggers when a tablet has completed a filtered snapshot restore.

func (*MultiRestore) Syslog

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

Syslog writes a MultiRestore event to syslog.

type MultiSnapshot

type MultiSnapshot struct {
	base.StatusUpdater

	Tablet topo.Tablet
	Args   actionnode.MultiSnapshotArgs
}

MultiSnapshot is an event that triggers when a tablet has completed a filtered snapshot.

func (*MultiSnapshot) Syslog

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

Syslog writes a MultiSnapshot event to syslog.

type Reparent

type Reparent struct {
	base.StatusUpdater

	ShardInfo            topo.ShardInfo
	OldMaster, NewMaster topo.Tablet
}

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