rss_sync v0.1.0 RssSync.Sync

Summary

Functions

Takes an RSS feed_url and saves it to the Storage server. Returns {:ok, feed_url}

Takes a feed_url, deletes it from the Storage server, and returns :ok

Starts the Sync server. Should only be called from a Supervisor

Ensures that the state of the Storage server corresponds to all its stored remotes, then asks the Storage server to persist its data. Returns :ok

Functions

add(feed_url)

Takes an RSS feed_url and saves it to the Storage server. Returns {:ok, feed_url}.

This function is basically a convenience wrapper around Storage.put, removing the need for manually adding meta and entries when saving.

delete(feed_url)

Takes a feed_url, deletes it from the Storage server, and returns :ok

start_link()

Starts the Sync server. Should only be called from a Supervisor.

sync()

Ensures that the state of the Storage server corresponds to all its stored remotes, then asks the Storage server to persist its data. Returns :ok.