Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCells ¶
func ParseCells(settings config.VitessConfigurationSettings) (cells []string)
ParseCells returns a slice of non-empty Vitess cell names
Types ¶
type Tablet ¶
type Tablet struct { Alias *topodata.TabletAlias `json:"alias,omitempty"` MysqlHostname string `json:"mysql_hostname,omitempty"` MysqlPort int32 `json:"mysql_port,omitempty"` Type topodata.TabletType `json:"type,omitempty"` }
Tablet represents information about a running instance of vttablet.
func ParseTablets ¶
func ParseTablets(settings config.VitessConfigurationSettings) (tablets []Tablet, err error)
ParseTablets reads from vitess /api/keyspace/<keyspace>/tablets/[shard] and returns a listing (mysql_hostname, mysql_port, type) of REPLICA tablets
func (Tablet) HasValidCell ¶
HasValidCell returns a bool reflecting if a tablet is in a valid Vitess cell
func (Tablet) IsValidReplica ¶
IsValidReplica returns a bool reflecting if a tablet type is REPLICA
Click to show internal directories.
Click to hide internal directories.