Cased.Publisher.HTTP (cased v1.0.0)
A publisher used to transmit audit events to Cased via HTTP/S.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Build publisher configuration.
Start and link a publisher process.
Link to this section Types
Link to this type
config()
Specs
config() :: %{ url: String.t(), headers: Mojito.headers(), silence: boolean(), timeout: pos_integer() | :infinity }
Link to this type
init_opt()
Specs
init_opt() :: {:key, String.t()} | {:url, String.t()} | {:silence, boolean()} | {:timeout, pos_integer() | :infinity}
Link to this type
init_opts()
Specs
init_opts() :: [init_opt()]
Available options to initialize the publisher.
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
init(opts)
Specs
Build publisher configuration.
Link to this function
start_link(opts)
Specs
start_link(opts :: init_opts()) :: GenServer.on_start()
Start and link a publisher process.