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: 5 Imported by: 0

Documentation

Overview

Package events defines the structures used for events relating directly to individual topology elements, like keyspaces, shards, and tablets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyspaceChange

type KeyspaceChange struct {
	KeyspaceName string
	Keyspace     *pb.Keyspace
	Status       string
}

KeyspaceChange is an event that describes changes to a keyspace.

func (*KeyspaceChange) Syslog

func (kc *KeyspaceChange) Syslog() (syslog.Priority, string)

Syslog writes the event to syslog.

type ShardChange

type ShardChange struct {
	KeyspaceName string
	ShardName    string
	Shard        *pb.Shard
	Status       string
}

ShardChange is an event that describes changes to a shard.

func (*ShardChange) Syslog

func (sc *ShardChange) Syslog() (syslog.Priority, string)

Syslog writes the event to syslog.

type TabletChange

type TabletChange struct {
	Tablet pb.Tablet
	Status string
}

TabletChange is an event that describes changes to a tablet's topo record. It is triggered when the CURRENT process changes ANY tablet's record. It is NOT triggered when a DIFFERENT process changes THIS tablet's record. To be notified when THIS tablet's record changes, even if it was changed by a different process, listen for go/vt/tabletmanager/events.StateChange.

func (*TabletChange) Syslog

func (tc *TabletChange) Syslog() (syslog.Priority, string)

Syslog writes the event to syslog.

Jump to

Keyboard shortcuts

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