Wardrik. Runner
(wardrik v0.1.0-rc.1)
Copy Markdown
Runs operations the same way for every surface:
- Finds the operation in the catalog.
- Validates the input against its schema.
- Asks the authorizer.
- For an owner's operation, checks the org is known. See
Wardrik.Orgs. - Calls the handler.
Summary
Functions
Runs the operation id in scope, with its handler (:handlers) or stream (:streams).
Functions
@spec run(Wardrik.Scope.t(), String.t(), map(), :handlers | :streams) :: {:ok, term()} | {:error, Wardrik.Error.t()}
Runs the operation id in scope, with its handler (:handlers) or stream (:streams).