View Source Electric.Shapes.Api.Response (electric v1.0.1)

Summary

Types

@type shape_handle() :: Electric.ShapeCacheBehaviour.shape_handle()
@type t() :: %Electric.Shapes.Api.Response{
  api: Electric.Shapes.Api.t(),
  body: Enum.t(),
  chunked: boolean(),
  handle: nil | shape_handle(),
  offset: nil | Electric.Replication.LogOffset.t(),
  params: Electric.Shapes.Api.Params.t(),
  shape_definition: nil | Electric.Shapes.Shape.t(),
  status: pos_integer(),
  trace_attrs: %{optional(atom()) => term()},
  up_to_date: boolean()
}

Functions

Link to this function

error(api_or_request, message, args \\ [])

View Source
Link to this function

etag(response, opts \\ [])

View Source
Link to this function

invalid_request(api_or_request, args)

View Source
@spec send(Plug.Conn.t(), t()) :: Plug.Conn.t()
Link to this function

shape_definition_mismatch(request)

View Source