Current section
Files
Jump to
Current section
Files
src/libero@frame.erl
-module(libero@frame).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/libero/frame.gleam").
-export_type([server_frame/1]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(
" Protocol-neutral frame type shared by ETF and JSON wire modules.\n"
"\n"
" Moved here from `libero/wire.gleam` so both protocol implementations\n"
" can import it without creating a dependency from ETF onto JSON types.\n"
).
-type server_frame(MNM) :: {response, integer(), MNM} |
{push, binary(), MNM} |
{error, gleam@option:option(integer()), list({binary(), binary()})}.