View Source Octopus.Definition (octopus v0.5.1)

Compiles the interface definition into a module.

Link to this section Summary

Link to this section Functions

@spec define(map()) :: {:ok, String.t()} | no_return()
Link to this function

define_state(module, state)

View Source
@spec define_state(atom(), any()) :: {:ok, String.t()} | no_return()
@spec new(map()) ::
  %Octopus.Definition{
    client: term(),
    helpers: term(),
    interface: term(),
    json_definition: term(),
    name: term()
  }
  | no_return()