johanna v0.2.5 Johanna.Spy

The GenServer that holds all the messages to be bulk-send to the devops.

Examples

Summary

Functions

Stores the message in the pool

Stores the message in the pool synchronously

Retrieves the list of messages

Calls the given function back with the list of messages as a parameter

Bulk-sends the accumulated messages to devops and cleans up the cache

Calls the given function back and cleans up the cache of messages

Functions

push(message)
push(Johanna.Message.t) :: :noreply

Stores the message in the pool.

push!(message)
push!(Johanna.Message.t) :: :noreply

Stores the message in the pool synchronously.

spy()
spy() :: List.t

Retrieves the list of messages.

spy(fun)
spy(Function.t) :: List.t

Calls the given function back with the list of messages as a parameter.

vomit()
vomit() :: :noreply

Bulk-sends the accumulated messages to devops and cleans up the cache.

vomit(fun)
vomit(Function.t) :: :noreply

Calls the given function back and cleans up the cache of messages.