-
-
Save KirinDave/c9c8d6cb47fdc5416993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clothesline.protocol.graph | |
(:use [clothesline.protocol | |
[response-helpers] | |
[syntax] | |
[graph-helpers]]) | |
(:require [clothesline [service :as s]])) | |
;; Proposed syntax | |
defsta ; I type defsta(M-<TAB>) and get no completions. | |
(protocol-machine "v3" | |
(defstate b13 | |
"Check if service has been made unavailable. Return status 503 if not." | |
:test s/service-available? | |
:yes :b12 | |
:no (stop-response 503)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment