View Source DiscoLog.Storage (disco_log v0.5.2)

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

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

Link to this function

add_thread_id(fingerprint, thread_id)

View Source

Add a new fingerprint -> thread_id mapping

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_thread_id(fingerprint)

View Source

Retrieve the thread_id for a given fingerprint

Start the Storage