Liking cljdoc? Tell your friends :D

liberator-hal-events-resource

Clojars Project

A Clojure library for liberator to load and transform events to HAL resources.

This library uses Halboy for creating and rendering HAL resources.

[ai.mypulse/liberator-hal-events-resource "0.1.0"]

Usage

You'll need to provide 2 function

  • Event loader: how to load your events from their store. (for example your database)
  • Event transformer (how to map those events into HAL resources)
(defn events-resource-handler-for [{:keys [events-store] :as dependencies}]
  (events-resource dependencies default-page-size
    (partial db-events-loader events-store) #event-loader-function
    event-mapping/event->resource)) #event-transformer function

License

Copyright MyPulse © 2022

Distributed under the MIT license.

Secrets

Managing CircleCI keys

To encrypt a GPG key for use by CircleCI:

openssl aes-256-cbc \
  -e \
  -md sha1 \
  -in ./config/secrets/ci/gpg.private \
  -out ./.circleci/gpg.private.enc \
  -k "<passphrase>"

To check decryption is working correctly:

openssl aes-256-cbc \
  -d \
  -md sha1 \
  -in ./.circleci/gpg.private.enc \
  -k "<passphrase>"

Can you improve this documentation? These fine people already did:
Toby Clemson, Bamdad Dashtban, Toby, Jakob Durstberger & Alex Parlett
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close