diff --git a/docs/api/api_data.js b/docs/api/api_data.js index ff047ddd..02307816 100644 --- a/docs/api/api_data.js +++ b/docs/api/api_data.js @@ -107,7 +107,7 @@ define({ "api": [ }, { "title": "ruby:", - "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer')\npayload = {\n timeout: 3000, \n data: \"hello world\", \n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Post.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", + "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer')\npayload = {\n timeout: 3000,\n data: \"hello world\",\n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Post.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", "type": "ruby" } ], @@ -251,7 +251,7 @@ define({ "api": [ }, { "title": "ruby:", - "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer/8c66a779-9c74-4e30-b5e8-f32d60909d45')\npayload = {\n timeout: 3000, \n data: \"hello world\", \n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Put.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", + "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer/8c66a779-9c74-4e30-b5e8-f32d60909d45')\npayload = {\n timeout: 3000,\n data: \"hello world\",\n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Put.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", "type": "ruby" } ], diff --git a/docs/api/api_data.json b/docs/api/api_data.json index c9c16057..f32a7523 100644 --- a/docs/api/api_data.json +++ b/docs/api/api_data.json @@ -107,7 +107,7 @@ }, { "title": "ruby:", - "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer')\npayload = {\n timeout: 3000, \n data: \"hello world\", \n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Post.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", + "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer')\npayload = {\n timeout: 3000,\n data: \"hello world\",\n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Post.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", "type": "ruby" } ], @@ -251,7 +251,7 @@ }, { "title": "ruby:", - "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer/8c66a779-9c74-4e30-b5e8-f32d60909d45')\npayload = {\n timeout: 3000, \n data: \"hello world\", \n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Put.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", + "content": "\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nuri = URI.parse('http://localhost:3003/timer/8c66a779-9c74-4e30-b5e8-f32d60909d45')\npayload = {\n timeout: 3000,\n data: \"hello world\",\n callback: {\n method: 'post',\n transport: 'http',\n uri: 'http://localhost:4000'\n }\n}\n\nhttp = Net::HTTP.new(uri.host, uri.port)\nrequest = Net::HTTP::Put.new(uri.request_uri, {'Content-Type': 'application/json'})\nrequest.body = payload.to_json\nresponse = http.request(request)\nprint response.code", "type": "ruby" } ], diff --git a/docs/api/api_project.js b/docs/api/api_project.js index c72ebe37..7c86ee71 100644 --- a/docs/api/api_project.js +++ b/docs/api/api_project.js @@ -6,7 +6,7 @@ define({ "apidoc": "0.2.0", "generator": { "name": "apidoc", - "time": "2017-06-11T19:41:09.658Z", + "time": "2017-07-03T12:25:57.507Z", "url": "http://apidocjs.com", "version": "0.16.1" } diff --git a/docs/api/api_project.json b/docs/api/api_project.json index 62dfbbea..7e1799c5 100644 --- a/docs/api/api_project.json +++ b/docs/api/api_project.json @@ -6,7 +6,7 @@ "apidoc": "0.2.0", "generator": { "name": "apidoc", - "time": "2017-06-11T19:41:09.658Z", + "time": "2017-07-03T12:25:57.507Z", "url": "http://apidocjs.com", "version": "0.16.1" } diff --git a/docs/classes.list.html b/docs/classes.list.html index acf43778..d26099bf 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -240,7 +240,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 23ed72ac..66ba7270 100644 --- a/docs/index.html +++ b/docs/index.html @@ -100,7 +100,7 @@
-

skyring

+

skyring

Travis npm npm @@ -113,7 +113,7 @@

Skyring

A distributed reliable timer service providing similar functionality to using setTimeout. Skyring servers are clustered into a hashring using consistent hashing to partition timers to specific nodes in the ring. Skyring exposes a simple HTTP API That allows to you create and cancel timers. Timer execution comes in to the form of an HTTP webhook ( more transports to come )

-

Architechture Overview

+

Architechture Overview

Install

npm install -s skyring

Run A Local Cluster

Start a nats instance

Download the nats binary and start it using the defaults

$ gnats -D -V

To verify that it is working, you can telnet directly to the server and ping it.

$ telnet localhost 42222
@@ -242,7 +242,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
@@ -333,4 +333,4 @@ 
 
 
 
-
+
\ No newline at end of file
diff --git a/docs/index.js.html b/docs/index.js.html
index bbc8d979..bcaeba3a 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -195,7 +195,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_json.js.html b/docs/lib_json.js.html
index f9b9c28f..7b9fab84 100644
--- a/docs/lib_json.js.html
+++ b/docs/lib_json.js.html
@@ -160,7 +160,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_nats.js.html b/docs/lib_nats.js.html
index 873386e8..f5753110 100644
--- a/docs/lib_nats.js.html
+++ b/docs/lib_nats.js.html
@@ -222,7 +222,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_index.js.html b/docs/lib_server_index.js.html
index 82c18482..cd11ec0a 100644
--- a/docs/lib_server_index.js.html
+++ b/docs/lib_server_index.js.html
@@ -316,7 +316,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_mock.js.html b/docs/lib_server_mock.js.html
index db8f1b03..1c91229b 100644
--- a/docs/lib_server_mock.js.html
+++ b/docs/lib_server_mock.js.html
@@ -310,7 +310,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_node.js.html b/docs/lib_server_node.js.html
index 4748a8d3..4c7ce1ad 100644
--- a/docs/lib_server_node.js.html
+++ b/docs/lib_server_node.js.html
@@ -333,7 +333,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_request.js.html b/docs/lib_server_request.js.html
index 0d736f7e..0508a91e 100644
--- a/docs/lib_server_request.js.html
+++ b/docs/lib_server_request.js.html
@@ -213,7 +213,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_response.js.html b/docs/lib_server_response.js.html
index 0c944a12..c1d55d08 100644
--- a/docs/lib_server_response.js.html
+++ b/docs/lib_server_response.js.html
@@ -254,7 +254,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_route.js.html b/docs/lib_server_route.js.html
index 06c4fb69..1242ed88 100644
--- a/docs/lib_server_route.js.html
+++ b/docs/lib_server_route.js.html
@@ -243,7 +243,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_server_router.js.html b/docs/lib_server_router.js.html
index 90bb202a..21b036e6 100644
--- a/docs/lib_server_router.js.html
+++ b/docs/lib_server_router.js.html
@@ -301,7 +301,7 @@ 
 
 	Documentation generated by JSDoc 3.4.3
 	
-		on 2017-06-11T14:41:09-05:00
+		on 2017-07-03T07:25:57-05:00
 	
 	using the DocStrap template.
 
diff --git a/docs/lib_timer.js.html b/docs/lib_timer.js.html
index 2da3e1fc..b03d628e 100644
--- a/docs/lib_timer.js.html
+++ b/docs/lib_timer.js.html
@@ -199,7 +199,7 @@ 

Source: lib/timer.js

, data: "this is a payload" , callback: { transport: 'http' - , method: 'put + , method: 'put' , uri: 'http://api.domain.com/callback' } } @@ -477,7 +477,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/lib_transports_callback.js.html b/docs/lib_transports_callback.js.html index 80b63311..95b648f5 100644 --- a/docs/lib_transports_callback.js.html +++ b/docs/lib_transports_callback.js.html @@ -141,7 +141,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/lib_transports_http.js.html b/docs/lib_transports_http.js.html index 13a0c3a8..5bcdc58c 100644 --- a/docs/lib_transports_http.js.html +++ b/docs/lib_transports_http.js.html @@ -193,7 +193,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/lib_transports_index.js.html b/docs/lib_transports_index.js.html index d4b864d4..165afaaf 100644 --- a/docs/lib_transports_index.js.html +++ b/docs/lib_transports_index.js.html @@ -270,7 +270,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-keef.html b/docs/module-keef.html index 3e99a5de..2f708a3c 100644 --- a/docs/module-keef.html +++ b/docs/module-keef.html @@ -324,7 +324,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring.html b/docs/module-skyring.html index 951cd2d5..529df838 100644 --- a/docs/module-skyring.html +++ b/docs/module-skyring.html @@ -239,7 +239,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_conf.html b/docs/module-skyring_conf.html index 6486cf99..cc97519f 100644 --- a/docs/module-skyring_conf.html +++ b/docs/module-skyring_conf.html @@ -719,7 +719,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_json.html b/docs/module-skyring_lib_json.html index f07abd7e..245ff963 100644 --- a/docs/module-skyring_lib_json.html +++ b/docs/module-skyring_lib_json.html @@ -515,7 +515,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_nats.html b/docs/module-skyring_lib_nats.html index b8c1c1be..fa88bf2e 100644 --- a/docs/module-skyring_lib_nats.html +++ b/docs/module-skyring_lib_nats.html @@ -503,7 +503,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server.html b/docs/module-skyring_lib_server.html index 3c744f18..51ee5bcb 100644 --- a/docs/module-skyring_lib_server.html +++ b/docs/module-skyring_lib_server.html @@ -1243,7 +1243,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_mock.Request.html b/docs/module-skyring_lib_server_mock.Request.html index 2848ae8c..ac0a91d4 100644 --- a/docs/module-skyring_lib_server_mock.Request.html +++ b/docs/module-skyring_lib_server_mock.Request.html @@ -262,7 +262,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_mock.Response.html b/docs/module-skyring_lib_server_mock.Response.html index a86dd815..6e43d05f 100644 --- a/docs/module-skyring_lib_server_mock.Response.html +++ b/docs/module-skyring_lib_server_mock.Response.html @@ -262,7 +262,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_mock.html b/docs/module-skyring_lib_server_mock.html index 7c4b46c1..3ed3f40a 100644 --- a/docs/module-skyring_lib_server_mock.html +++ b/docs/module-skyring_lib_server_mock.html @@ -248,7 +248,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_node.html b/docs/module-skyring_lib_server_node.html index a465fe13..1a30f1f4 100644 --- a/docs/module-skyring_lib_server_node.html +++ b/docs/module-skyring_lib_server_node.html @@ -1716,7 +1716,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_request.html b/docs/module-skyring_lib_server_request.html index 218cf6f8..90a43bf6 100644 --- a/docs/module-skyring_lib_server_request.html +++ b/docs/module-skyring_lib_server_request.html @@ -234,7 +234,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_response.html b/docs/module-skyring_lib_server_response.html index 86e69bf3..6b15108d 100644 --- a/docs/module-skyring_lib_server_response.html +++ b/docs/module-skyring_lib_server_response.html @@ -1492,7 +1492,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_route.html b/docs/module-skyring_lib_server_route.html index 536ef20a..449ba052 100644 --- a/docs/module-skyring_lib_server_route.html +++ b/docs/module-skyring_lib_server_route.html @@ -834,7 +834,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_server_router.html b/docs/module-skyring_lib_server_router.html index 9608c483..019a81cc 100644 --- a/docs/module-skyring_lib_server_router.html +++ b/docs/module-skyring_lib_server_router.html @@ -1872,7 +1872,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_timer.html b/docs/module-skyring_lib_timer.html index 7547efbc..8304da43 100644 --- a/docs/module-skyring_lib_timer.html +++ b/docs/module-skyring_lib_timer.html @@ -1087,7 +1087,7 @@
Example
, data: "this is a payload" , callback: { transport: 'http' - , method: 'put + , method: 'put' , uri: 'http://api.domain.com/callback' } } @@ -2180,7 +2180,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_transports.html b/docs/module-skyring_lib_transports.html index fbf57b57..1b311edc 100644 --- a/docs/module-skyring_lib_transports.html +++ b/docs/module-skyring_lib_transports.html @@ -722,7 +722,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_transports_http.html b/docs/module-skyring_lib_transports_http.html index 74038da8..90d4bcc7 100644 --- a/docs/module-skyring_lib_transports_http.html +++ b/docs/module-skyring_lib_transports_http.html @@ -412,7 +412,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/module-skyring_lib_transports_timer.html b/docs/module-skyring_lib_transports_timer.html index 3b4a7b56..e1d585d5 100644 --- a/docs/module-skyring_lib_transports_timer.html +++ b/docs/module-skyring_lib_transports_timer.html @@ -226,7 +226,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/modules.list.html b/docs/modules.list.html index dbb35c7e..8025d969 100644 --- a/docs/modules.list.html +++ b/docs/modules.list.html @@ -240,7 +240,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/node_modules_keef_index.js.html b/docs/node_modules_keef_index.js.html index f4a0af22..6ca3655c 100644 --- a/docs/node_modules_keef_index.js.html +++ b/docs/node_modules_keef_index.js.html @@ -397,7 +397,7 @@ Documentation generated by JSDoc 3.4.3 - on 2017-06-11T14:41:09-05:00 + on 2017-07-03T07:25:57-05:00 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 2e42c5ee..7b512650 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@