From bf203d6ff7c397fc1cacf074dd570830d5370f50 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 13 Dec 2013 11:18:27 +0400 Subject: [PATCH] Document sorted.Wiper more. Change-Id: Iede5cf3ec12453910594c682a3a18f8c237fbd40 --- pkg/sorted/kv.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/sorted/kv.go b/pkg/sorted/kv.go index 57cc8d927..9fa96b6cf 100644 --- a/pkg/sorted/kv.go +++ b/pkg/sorted/kv.go @@ -62,7 +62,11 @@ type KeyValue interface { Close() error } +// Wiper is an optional interface that may be implemented by storage +// implementations. type Wiper interface { + KeyValue + // Wipe removes all key/value pairs. Wipe() error }