SkillKit.Webhook.Store.Memory (SkillKit v0.1.0)

Copy Markdown View Source

In-memory webhook store backed by an Agent process holding a map.

Content is lost on BEAM restart. Intended for dev, tests, and single-node deployments where re-registering webhooks after restart is acceptable. Use a durable backend implementing SkillKit.Webhook.Store in production.

Config

{:ok, pid} = SkillKit.Webhook.Store.Memory.start_link()
config = [pid: pid]
:ok = SkillKit.Webhook.Store.Memory.put(config, webhook)

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the backing Agent process.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Agent.on_start()

Starts the backing Agent process.