diff options
Diffstat (limited to 'internal/storage/storage.go')
-rw-r--r-- | internal/storage/storage.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/storage/storage.go b/internal/storage/storage.go new file mode 100644 index 0000000..5847bcc --- /dev/null +++ b/internal/storage/storage.go @@ -0,0 +1,14 @@ +package storage + +import ( + "context" + "io" + + "go.neonxp.dev/djson/internal/model" +) + +type Storage interface { + io.Closer + Commit(ctx context.Context, mut model.Mutation) error + Load() chan model.Mutation +} |