adding basic data storage
This commit is contained in:
9
internal/data/IDatastore.go
Normal file
9
internal/data/IDatastore.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package data
|
||||
|
||||
type IDatastore interface {
|
||||
Set(key string, val string) error
|
||||
KeyExists(key string) (bool, error)
|
||||
Get(key string) (string, error)
|
||||
GetAll() (map[string]string, error)
|
||||
GetAllKeys() (map[string]bool, error)
|
||||
}
|
||||
Reference in New Issue
Block a user