Kantoor. Feeds. Subscription
(Kantoor v1.0.0)
A subscribed calendar: the settings and the fetch state of one external iCalendar feed that fills a calendar collection of a user.
The feed address is a secret (many feeds are protected only by an unguessable
URL), so it is kept encrypted with Kantoor.Vault in url_encrypted, never
logged, and never shown: url_host is all that is displayed. The fields
status, last_*, error_count, etag, last_modified and content_hash
are the outcome of the last fetches (Kantoor.Feeds.Refresh);
next_fetch_at and claimed_until are the scheduling facts every replica
reads from Postgres.
Summary
Functions
The changeset of what a person (or a provisioning system) enters: url, name,
color, refresh_minutes and busy. With :create the address is required;
with :update only what is given changes. url is normalised
(Kantoor.Feeds.Url); the error messages are the English keys the interface
translates.
The longest refresh interval, in minutes (one week).
The shortest refresh interval, in minutes.
Types
@type t() :: %Kantoor.Feeds.Subscription{ __meta__: term(), busy: term(), claimed_until: term(), collection_id: term(), color: term(), content_hash: term(), error_count: term(), etag: term(), event_count: term(), external_ref: term(), id: term(), inserted_at: term(), last_attempt_at: term(), last_error: term(), last_modified: term(), last_success_at: term(), name: term(), next_fetch_at: term(), paused: term(), refresh_minutes: term(), status: term(), updated_at: term(), url: term(), url_encrypted: term(), url_host: term(), user_id: term() }
Functions
@spec changeset(t(), map(), :create | :update) :: Ecto.Changeset.t()
The changeset of what a person (or a provisioning system) enters: url, name,
color, refresh_minutes and busy. With :create the address is required;
with :update only what is given changes. url is normalised
(Kantoor.Feeds.Url); the error messages are the English keys the interface
translates.
The longest refresh interval, in minutes (one week).
The shortest refresh interval, in minutes.