Beispiel #1
0
func DeleteBlock(e storage.Tx, domain string, id *uuid.UUID, idx int) error {
	key := fmt.Sprintf(blockKey, id, idx)

	return e.Delete(domain, key)
}
Beispiel #2
0
func DeleteLog(e storage.Tx, domain string, name string) error {
	key := fmt.Sprintf(logKey, name)

	return e.Delete(domain, key)
}
Beispiel #3
0
func DeleteSegment(e storage.Tx, domain string, id *uuid.UUID) error {
	key := fmt.Sprintf(segmentKey, id)

	return e.Delete(domain, key)
}