store handler implementation

This commit is contained in:
Asim Aslam
2019-10-11 14:08:50 +01:00
parent 98e1f2c2d3
commit a96f6adf07
9 changed files with 1048 additions and 45 deletions

View File

@@ -19,11 +19,11 @@ type Store interface {
// Sync all the known records
Sync() ([]*Record, error)
// Read a record with key
Read(key string) (*Record, error)
Read(keys ...string) ([]*Record, error)
// Write a record
Write(r *Record) error
Write(recs ...*Record) error
// Delete a record with key
Delete(key string) error
Delete(keys ...string) error
}
// Record represents a data record