anchor_app (anchor v0.3.6)

View Source

Summary

Types

error/0

-type error() :: {error, atom()}.

option/0

-type option() :: {async, pid()}.

options/0

-type options() :: [option()].

response/0

-type response() ::
          #response{op_code :: non_neg_integer() | undefined,
                    key_length :: non_neg_integer() | undefined,
                    extras_length :: non_neg_integer() | undefined,
                    data_type :: non_neg_integer() | undefined,
                    status :: non_neg_integer() | undefined,
                    body_length :: non_neg_integer() | undefined,
                    opaque :: non_neg_integer() | undefined,
                    cas :: non_neg_integer() | undefined,
                    extras :: binary() | undefined,
                    key :: binary() | undefined,
                    value :: binary() | undefined}.

Functions

start()

-spec start() -> {ok, [atom()]}.

start(StartType, StartArgs)

-spec start(application:start_type(), term()) -> {ok, pid()}.

stop()

-spec stop() -> ok | {error, {not_started, anchor}}.

stop(State)

-spec stop(term()) -> ok.