Skip to content

Instantly share code, notes, and snippets.

@hlship
Created June 15, 2015 18:46
Show Gist options
  • Save hlship/84b0686bba98d91c89e9 to your computer and use it in GitHub Desktop.
Save hlship/84b0686bba98d91c89e9 to your computer and use it in GitHub Desktop.
Sample startup
(ns fan.acquirer
(:require [schema.core :as s]
[io.aviso/config :as config]
[fan.startup :as startup)
(:gen-class)
(s/defschema ^:private AcquirerSchema
"When an Acquirer is set up, it is registered with the MIX, and an acquirer instance is created in the MIX database.
The Acquirer must reference its UUID when submitting payments."
{:acquirer {:uuid s/Uuid}})
(defn -main
[args]
(startup/launch-system [:acquirer] [AcquirerSchema] args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment