View Source argo_graphql_formatter behaviour (argo v1.0.1)

Summary

Types

-type t() :: dynamic().

Callbacks

-callback shift_left(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().
-callback shift_right(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().
-callback write(Formatter1, Format :: io:format(), Data :: [term()]) -> Formatter2
         when Formatter1 :: t(), Formatter2 :: t().
-callback write_indent(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().

Functions

-spec shift_left(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().
-spec shift_right(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().
Link to this function

write(Formatter1, Format, Data)

View Source
-spec write(Formatter1, Format :: io:format(), Data :: [term()]) -> Formatter2
         when Formatter1 :: t(), Formatter2 :: t().
Link to this function

write_description(Formatter1, Description)

View Source
-spec write_description(Formatter1, Description :: unicode:unicode_binary()) -> Formatter2
                     when Formatter1 :: t(), Formatter2 :: t().
Link to this function

write_indent(Formatter1)

View Source
-spec write_indent(Formatter1) -> Formatter2 when Formatter1 :: t(), Formatter2 :: t().