Wardrik. Operations. Types
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
Converts each operation's input and output between Elixir and the protocol's JSON.
Input is keyword lists and structs. Output is structs, lists and :ok.
Summary
Functions
Converts the operation's JSON output to what an Elixir caller gets.
Converts an Elixir caller's input to the operation's JSON input.
Converts a streamed event and its cursor to {%Wardrik.Event{}, cursor}.
Returns the path segment for value: a string as given, or a struct's ID or name.
Functions
Converts the operation's JSON output to what an Elixir caller gets.
Converts an Elixir caller's input to the operation's JSON input.
@spec event({map(), String.t()}) :: {Wardrik.Event.t(), String.t()}
Converts a streamed event and its cursor to {%Wardrik.Event{}, cursor}.
Returns the path segment for value: a string as given, or a struct's ID or name.