mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
14 lines
372 B
Go
14 lines
372 B
Go
package db
|
|
|
|
type Storage[T any] interface {
|
|
Configure() (err error)
|
|
Get(name string) (ret *T, err error)
|
|
GetNames() (ret []string, err error)
|
|
Delete(name string) (err error)
|
|
Exists(name string) (ret bool)
|
|
Rename(oldName, newName string) (err error)
|
|
Save(name string, content []byte) (err error)
|
|
Load(name string) (ret []byte, err error)
|
|
ListNames() (err error)
|
|
}
|