Packages

Amazon States Language workflow interpreter.

Current section

Files

Jump to
workflows lib workflows path.ex
Raw

lib/workflows/path.ex

defmodule Workflows.Path do
@moduledoc """
A Path is used to query json objects.
"""
@opaque t :: term()
defstruct [:inner]
@spec create(String.t()) :: {:ok, t()} | {:error, term()}
def create(path) do
# TODO: parse path
{:ok, %__MODULE__{inner: path}}
end
end