go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/topo/events Index | Files

package events

import "gopkg.in/src-d/go-vitess.v1/vt/topo/events"

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

Index

Package Files

doc.go keyspace_change.go keyspace_change_syslog.go shard_change.go shard_change_syslog.go tablet_change.go tablet_change_syslog.go

type KeyspaceChange Uses

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

KeyspaceChange is an event that describes changes to a keyspace.

func (*KeyspaceChange) Syslog Uses

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

Syslog writes the event to syslog.

type ShardChange Uses

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 Uses

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

Syslog writes the event to syslog.

type TabletChange Uses

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 Uses

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

Syslog writes the event to syslog.

Package events imports 5 packages (graph) and is imported by 2 packages. Updated 2019-06-13. Refresh now. Tools for package owners.