webhooks_emitter v0.1.3 WebhooksEmitter.Interface behaviour View Source
Specification for WebhooksEmitter
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Link to this callback
attach(emitter_id, event_name, emitter_config)
View Sourceattach(emitter_id(), event_name(), emitter_config()) :: :ok | {:error, :already_exists}
Link to this callback
attach_many(emitter_id, event_names, emitter_config)
View Sourceattach_many(emitter_id(), event_names(), emitter_config()) :: :ok | {:error, :already_exists}
Link to this callback
emit(event_name, event_payload, request_id)
View Sourceemit(event_name(), event_payload(), request_id()) :: {:ok, request_id()}