summaryrefslogblamecommitdiff
path: root/internal/storage/contract.go
blob: 5847bcc18b2de693dd7374e54120660cff621268 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}