events

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

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 ExternalVitessClusterChange added in v0.10.0

type ExternalVitessClusterChange struct {
	ClusterName           string
	ExternalVitessCluster *topodatapb.ExternalVitessCluster
	Status                string
}

ExternalVitessClusterChange is an event that describes changes to a vitess cluster.

type KeyspaceChange

type KeyspaceChange struct {
	KeyspaceName string
	Keyspace     *topodatapb.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 MetadataChange

type MetadataChange struct {
	Key    string
	Status string
}

MetadataChange is an event that describes changes to topology metadata

type ShardChange

type ShardChange struct {
	KeyspaceName string
	ShardName    string
	Shard        *topodatapb.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 *topodatapb.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