Пример #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", topoproto.TabletAliasUIDStr(alias))
}
Пример #2
0
// TabletPathForAlias converts a tablet alias to the zk path
func TabletPathForAlias(alias *topodatapb.TabletAlias) string {
	return fmt.Sprintf("/zk/%v/vt/tablets/%v", alias.Cell, topoproto.TabletAliasUIDStr(alias))
}