View Source argo_graphql_printer (argo v1.0.6)

Summary

Types

-type options() :: #{strict => boolean()}.
-type t() ::
    #argo_graphql_printer{depth :: non_neg_integer(),
                          output :: iolist() | io:device(),
                          strict :: boolean()}.

Functions

-spec finalize(Printer) -> ok | iolist() when Printer :: t().
Link to this function

new_io_device(IoDevice, Options)

View Source
-spec new_io_device(IoDevice, Options) -> Printer
                 when IoDevice :: io:device(), Options :: options(), Printer :: t().
-spec new_string(Options) -> Printer when Options :: options(), Printer :: t().
-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_indent(Formatter1)

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