Documentation ¶
Overview ¶
Package status defines a few useful functions for our binaries, mainly to link the status page with a vtctld instance.
Index ¶
- func MakeVtctldRedirect(text string, q map[string]string) template.HTML
- func VtctldKeyspace(keyspace string) template.HTML
- func VtctldLink(text, urlPath string) template.HTML
- func VtctldReplication(cell, keyspace, shard string) template.HTML
- func VtctldShard(keyspace, shard string) template.HTML
- func VtctldSrvCell(cell string) template.HTML
- func VtctldSrvKeyspace(cell, keyspace string) template.HTML
- func VtctldSrvShard(cell, keyspace, shard string) template.HTML
- func VtctldSrvType(cell, keyspace, shard string, tabletType topo.TabletType) template.HTML
- func VtctldTablet(aliasName string) template.HTML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeVtctldRedirect ¶
MakeVtctldRedirect returns an absolute vtctld url that will redirect to the page for the topology object specified in q.
func VtctldKeyspace ¶
VtctldKeyspace returns the keyspace name, possibly linked to the keyspace page in vtctld.
func VtctldLink ¶
VtctldLink returns the HTML to display a link to the fully qualified vtctld url whose path is given as parameter. If no vtctld_addr flag was passed in, we just return the text with no link.
func VtctldReplication ¶
VtctldReplication returns 'cell/keyspace/shard', possibly linked to the ShardReplication page in vtctld.
func VtctldShard ¶
VtctldShard returns the shard name, possibly linked to the shard page in vtctld.
func VtctldSrvCell ¶
VtctldSrvCell returns the cell name, possibly linked to the serving graph page in vtctld for that page.
func VtctldSrvKeyspace ¶
VtctldSrvKeyspace returns the keyspace name, possibly linked to the SrvKeyspace page in vtctld.
func VtctldSrvShard ¶
VtctldSrvShard returns the shard name, possibly linked to the SrvShard page in vtctld.
func VtctldSrvType ¶
func VtctldSrvType(cell, keyspace, shard string, tabletType topo.TabletType) template.HTML
VtctldSrvType returns the tablet type, possibly linked to the EndPoints page in vtctld.
func VtctldTablet ¶
VtctldTablet returns the tablet alias, possibly linked to the Tablet page in vtctld.
Types ¶
This section is empty.