View Source DiscoLog.Storage (disco_log v0.7.0)

A GenServer to store the mapping of fingerprint to Discord Thread ID.

Summary

Functions

Add a new fingerprint -> thread_id mapping

Returns a specification to start this module under a supervisor.

Retrieve the thread_id for a given fingerprint

Start the Storage

Functions

add_thread_id(name, fingerprint, thread_id)

Add a new fingerprint -> thread_id mapping

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_thread_id(name, fingerprint)

Retrieve the thread_id for a given fingerprint

start_link(opts)

Start the Storage