rss_sync v0.1.0 RssSync.Storage

Summary

Functions

Returns all feeds currently stored on the Agent

Takes an RSS feed URL and deletes the corresponding feed on the Agent. Returns :ok

Takes an arbitrary term, searches for it in the metadata of each feed and returns the first matching feed in the format {url, {meta, entries}}

Takes no argument, stores the current state of the Storage Agent on disk, and returns :ok

Takes a pair {rss_feed_url, {meta, entries}} stores it on the Agent, and returns :ok

Starts the Storage Agent. This should only be called from a Supervisor

Functions

all()

Returns all feeds currently stored on the Agent.

del(feed_url)

Takes an RSS feed URL and deletes the corresponding feed on the Agent. Returns :ok.

find(meta_value)

Takes an arbitrary term, searches for it in the metadata of each feed and returns the first matching feed in the format {url, {meta, entries}}.

persist()

Takes no argument, stores the current state of the Storage Agent on disk, and returns :ok.

put(feed_pair)

Takes a pair {rss_feed_url, {meta, entries}} stores it on the Agent, and returns :ok.

start_link()

Starts the Storage Agent. This should only be called from a Supervisor.