kane v1.0.0 Kane.Subscription
Link to this section Summary
Functions
Find a subscription by name. The name can be either a short name (my-subscription
)
or the fully-qualified name (projects/my-project/subscriptions/my-subscription
)
Link to this section Types
Link to this section Functions
Link to this function
ack(kane, sub, message)
ack(kane, sub, message)
ack(Kane.t(), t(), messages :: Kane.Message.t() | [Kane.Message.t()]) ::
:ok | Kane.Client.error()
ack(Kane.t(), t(), messages :: Kane.Message.t() | [Kane.Message.t()]) :: :ok | Kane.Client.error()
Link to this function
create(kane, sub)
Link to this function
delete(kane, sub_name)
Link to this function
extend(kane, sub, msg, extension)
extend(kane, sub, msg, extension)
extend(
Kane.t(),
t(),
messages :: Kane.Message.t() | [Kane.Message.t()],
extension :: pos_integer()
) :: :ok | Kane.Client.error()
extend( Kane.t(), t(), messages :: Kane.Message.t() | [Kane.Message.t()], extension :: pos_integer() ) :: :ok | Kane.Client.error()
Link to this function
find(kane, name)
Find a subscription by name. The name can be either a short name (my-subscription
)
or the fully-qualified name (projects/my-project/subscriptions/my-subscription
)
Link to this function
full_name(sub_name, project_id)
Link to this function
pull(kane, sub, options \\ [])
pull(kane, sub, options \\ [])
pull(Kane.t(), t(), Keyword.t() | pos_integer()) ::
{:ok, [Kane.Message.t()]} | Kane.Client.error()
pull(Kane.t(), t(), Keyword.t() | pos_integer()) :: {:ok, [Kane.Message.t()]} | Kane.Client.error()
Link to this function
stream(kane, sub, options \\ [])
stream(kane, sub, options \\ [])
stream(Kane.t(), t(), Keyword.t() | pos_integer()) :: Enumerable.t()
stream(Kane.t(), t(), Keyword.t() | pos_integer()) :: Enumerable.t()
Link to this function