Skip to content

mypulse-uk/liberator-hal-events-resource

 
 

Repository files navigation

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>"

About

Liberator HAL events resource

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 75.0%
  • Shell 14.4%
  • Ruby 10.6%