mattsmee / command-listener

A routable command listener. You got a command, yo I'll run it, check out the hook whilst my router resolves it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

command-listener

A routable command listener. You got a command, yo I'll run it, check out the hook whilst my router resolves it.

type Message =
  { id       :: String
  , command  :: String
  , resource :: JSON
  , payload  :: JSON
  }


type Status
  = OK
  | FAIL
  | REQUEUE
  | PRIORITY_REQUEUE Number


type Response =
  { message :: Message
  , status  :: Status
  }

About

A routable command listener. You got a command, yo I'll run it, check out the hook whilst my router resolves it.

License:MIT License


Languages

Language:JavaScript 98.5%Language:Makefile 1.5%