Esempio n. 1
0
// GetTabletPath is part of the Explorer interface
func (ex ZkExplorer) GetTabletPath(alias *pb.TabletAlias) string {
	return path.Join("/zk", alias.Cell, "vt/tablets", topo.TabletAliasUIDStr(alias))
}
Esempio n. 2
0
// TabletPathForAlias converts a tablet alias to the zk path
func TabletPathForAlias(alias *pb.TabletAlias) string {
	return fmt.Sprintf("/zk/%v/vt/tablets/%v", alias.Cell, topo.TabletAliasUIDStr(alias))
}