vitess

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tablet

type Tablet struct {
	MysqlHostname string `json:"mysql_hostname,omitempty"`
	MysqlPort     int32  `json:"mysql_port,omitempty"`
}

Tablet represents information about a running instance of vttablet.

func ParseTablets

func ParseTablets(api string, keyspace string, shard string) (tablets []Tablet, err error)

ParseTablets reads from vitess /api/ks_tablets/<keyspace>/[shard] and returns a tblet (mysql_hostname, mysql_port) listing

Jump to

Keyboard shortcuts

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