diff options
Diffstat (limited to 'internal/handler/contract.go')
-rw-r--r-- | internal/handler/contract.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/handler/contract.go b/internal/handler/contract.go index 8887be8..38280cf 100644 --- a/internal/handler/contract.go +++ b/internal/handler/contract.go @@ -1,13 +1,13 @@ package handler import ( - "net/http" + "context" - "github.com/go-chi/chi/v5" + "go.neonxp.dev/djson/internal/command" + "go.neonxp.dev/json" ) -type Handler interface { - HandleCRUD(r chi.Router) - HandleEvents(r chi.Router) - Hearthbeat(w http.ResponseWriter, r *http.Request) +type Core interface { + Apply(ctx context.Context, mutation *command.Mutation) error + Query(ctx context.Context, query []string) (json.Node, error) } |