Database.Worker (Eddb v0.7.0)
View SourceSummary
Functions
Returns a specification to start this module under a supervisor.
Find a topic by name in current state. If there is no match in state, try to retrive data from disc. If there is no data on disc, return nil
Find a topic not just locally, but on all nodes. This works as follows
Callback implementation for GenServer.init/1
.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Find a topic by name in current state. If there is no match in state, try to retrive data from disc. If there is no data on disc, return nil
Find a topic not just locally, but on all nodes. This works as follows:
- Get all connected nodes
- Get the pid of the equivalent workers on the other nodes
- Call the get_topic_local method on the distante nodes
- Aggregate the data to a list
- Merge the list with local data and drop all nil values
Callback implementation for GenServer.init/1
.