Liking cljdoc? Tell your friends :D

wagoe.calendar.shell.service

Public API for the calendar library.

Wraps the iCal adapter to keep callers decoupled from ical4j internals. All functions create an adapter internally unless one is injected via opts.

Shell layer — may perform I/O via the ical4j adapter.

Public API for the calendar library.

Wraps the iCal adapter to keep callers decoupled from ical4j internals.
All functions create an adapter internally unless one is injected via opts.

Shell layer — may perform I/O via the ical4j adapter.
raw docstring

export-icalclj

(export-ical events)
(export-ical events opts)

Convert a seq of EventData maps to an RFC 5545 VCALENDAR string.

Args: events - seq of EventData maps opts - options map; supported keys: :product-id string PRODID value (default "-//Wagoe//Calendar//EN") :adapter CalendarAdapterProtocol implementation (default ICalAdapter)

Returns a string starting with "BEGIN:VCALENDAR".

Convert a seq of EventData maps to an RFC 5545 VCALENDAR string.

Args:
  events - seq of EventData maps
  opts   - options map; supported keys:
             :product-id  string  PRODID value (default "-//Wagoe//Calendar//EN")
             :adapter     CalendarAdapterProtocol implementation (default ICalAdapter)

Returns a string starting with "BEGIN:VCALENDAR".
sourceraw docstring

ical-feed-responseclj

(ical-feed-response events)
(ical-feed-response events opts)

Export events and wrap them in a Ring response.

opts: those of export-ical, plus :filename and :max-age as in wagoe.calendar.core.feed/ical-response.

Export `events` and wrap them in a Ring response.

opts: those of export-ical, plus :filename and :max-age as in
`wagoe.calendar.core.feed/ical-response`.
sourceraw docstring

import-icalclj

(import-ical ical-string)
(import-ical ical-string opts)

Parse an RFC 5545 VCALENDAR string into a vector of EventData maps.

Args: ical-string - RFC 5545 VCALENDAR string opts - options map; supported keys: :adapter CalendarAdapterProtocol implementation (default ICalAdapter) :timezone IANA zone for events without a TZID (default "UTC")

Returns a vector of EventData maps (kebab-case, :start/:end as Instants).

Parse an RFC 5545 VCALENDAR string into a vector of EventData maps.

Args:
  ical-string - RFC 5545 VCALENDAR string
  opts        - options map; supported keys:
                  :adapter  CalendarAdapterProtocol implementation (default ICalAdapter)
                  :timezone IANA zone for events without a TZID (default "UTC")

Returns a vector of EventData maps (kebab-case, :start/:end as Instants).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close