Liking cljdoc? Tell your friends :D

boundary.reports.ports

Protocol definitions (interfaces) for the reports module.

All adapters (PDF, Excel) implement ReportGeneratorProtocol. This keeps the core layer decoupled from any specific rendering backend.

Protocol definitions (interfaces) for the reports module.

All adapters (PDF, Excel) implement ReportGeneratorProtocol.
This keeps the core layer decoupled from any specific rendering backend.
raw docstring

ReportGeneratorProtocolcljprotocol

Abstraction over PDF and Excel generation backends.

Abstraction over PDF and Excel generation backends.

generate!clj

(generate! this report-def data opts)

Generate report bytes synchronously.

Args: this - Generator instance (OpenHtmlToPdfGenerator or DocjureExcelGenerator) report-def - ReportDefinition map (satisfies schema/ReportDefinition) data - Seq of records (nil if :data-source not used) opts - Arbitrary options map passed through from the caller

Returns ReportOutput map: {:bytes byte-array :type :pdf | :excel :filename "report.pdf"}

Generate report bytes synchronously.

Args:
  this       - Generator instance (OpenHtmlToPdfGenerator or DocjureExcelGenerator)
  report-def - ReportDefinition map (satisfies schema/ReportDefinition)
  data       - Seq of records (nil if :data-source not used)
  opts       - Arbitrary options map passed through from the caller

Returns ReportOutput map:
  {:bytes    byte-array
   :type     :pdf | :excel
   :filename "report.pdf"}

supported-type?clj

(supported-type? this report-type)

Returns true if this generator handles the given report type.

Args: this - Generator instance report-type - :pdf or :excel

Returns true if this generator handles the given report type.

Args:
  this        - Generator instance
  report-type - :pdf or :excel
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