set default store, fix store options bug, add String method
This commit is contained in:
@@ -25,6 +25,8 @@ type Store interface {
|
||||
Write(*Record) error
|
||||
// Delete records with keys
|
||||
Delete(key string) error
|
||||
// Name of the store
|
||||
String() string
|
||||
}
|
||||
|
||||
// Record represents a data record
|
||||
@@ -62,3 +64,7 @@ func (n *noop) Write(rec *Record) error {
|
||||
func (n *noop) Delete(key string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n *noop) String() string {
|
||||
return "noop"
|
||||
}
|
||||
|
Reference in New Issue
Block a user