Liking cljdoc? Tell your friends :D

boundary.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 "-//Boundary//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 "-//Boundary//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)

Build a Ring response map for serving an iCal feed over HTTP.

Args: events - seq of EventData maps opts - same opts as export-ical; also accepts: :filename string — Content-Disposition filename (default "calendar.ics")

Returns: {:status 200 :headers {"Content-Type" "text/calendar; charset=utf-8" "Content-Disposition" "attachment; filename="calendar.ics""} :body "BEGIN:VCALENDAR..."}

Build a Ring response map for serving an iCal feed over HTTP.

Args:
  events - seq of EventData maps
  opts   - same opts as export-ical; also accepts:
             :filename string — Content-Disposition filename (default "calendar.ics")

Returns:
  {:status  200
   :headers {"Content-Type"        "text/calendar; charset=utf-8"
             "Content-Disposition" "attachment; filename=\"calendar.ics\""}
   :body    "BEGIN:VCALENDAR..."}
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)

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)

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