feat: added kwargs and flags to pass to plugins
This commit is contained in:
parent
dc6a141ca1
commit
42c8fd7c1a
6 changed files with 95 additions and 7 deletions
|
|
@ -1,9 +1,14 @@
|
|||
package storage
|
||||
|
||||
import "git.towk2.me/towk/makeshift/internal/kwargs"
|
||||
|
||||
type KVStore interface {
|
||||
Init() error
|
||||
Cleanup() error
|
||||
|
||||
SetKWArgs(kwargs *kwargs.KWArgs) error
|
||||
GetKWArgs() (*kwargs.KWArgs, error)
|
||||
|
||||
Get(k string) (any, error)
|
||||
Set(k string, v any) error
|
||||
GetData() any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue