diff --git a/pkg/accounts/accounts.go b/pkg/accounts/accounts.go new file mode 100644 index 000000000..f49b787fa --- /dev/null +++ b/pkg/accounts/accounts.go @@ -0,0 +1,17 @@ +package accounts + +// Account is an accounts service interface +type Account interface { + // Read a record + Read(key string) (*Record, error) + // Write a record + Write(Record) Record + // List all records + List() []*Record +} + +// Record is an entry in the account storage +type Record struct { + Key string + Value []byte +}