summaryrefslogtreecommitdiff
path: root/internal/tree/contract.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tree/contract.go')
-rw-r--r--internal/tree/contract.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/tree/contract.go b/internal/tree/contract.go
deleted file mode 100644
index 29748cb..0000000
--- a/internal/tree/contract.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package tree
-
-import (
- "context"
-
- dmodel "go.neonxp.dev/djson/internal/model"
- "go.neonxp.dev/json/model"
-)
-
-type Core interface {
- Init() error
- Get(nodes []string) (model.Node, error)
- Mutate(ctx context.Context, mut *dmodel.Mutation) error
- State() CoreState
-}
-
-type CoreState int
-
-const (
- Running CoreState = iota
- Ready
- Failed
-)