Commit graph

83 commits

Author SHA1 Message Date
Luna Mendes
31a0f2b989
Add streaming API documentation
- streaming: add sub/unsub OP codes, changing from the old behavior of
    just giving a channels array.
 - streaming: properly check payloads against their data and send
    proper errors.

 - manager: add unsubscribe()
2018-07-11 18:23:47 -03:00
Luna Mendes
3fa27f5de6
move blueprints inside elstat folder
- add OP.DATA
 - manager: add _websockets map
 - manager: add basic publish logic
 - worker: add timestamps to published messages
2018-07-11 17:00:39 -03:00
Luna Mendes
3ec64d5bdd
worker: add basic _dispatch_work logic 2018-07-11 03:42:31 -03:00
Luna Mendes
7e6d9d5402
add channel creation
dynamically create channels by adapter's specs.

 - add cleanup tasks for ServiceManager and ServiceWorker
2018-07-11 02:48:00 -03:00
Luna Mendes
053762f69f
blueprints: add streaming blueprint
clients can connect and subscribe to different channels
and they will get messages from those channels (basic pub/sub)

this is useful in the case of a client wanting issue updates
in real time, which is better than the client having to poll
/api/status every now and then.

 - manager: add ServiceManager.subscribe and .unsub_all
2018-07-10 20:03:07 -03:00
Luna Mendes
1de3bbdd95 run: default 0.0.0.0 2018-07-09 17:24:11 -03:00
Luna Mendes
40e81b76c1
README: add config instruction 2018-07-09 02:51:41 -03:00
Luna Mendes
e8b81422a2
frontend: change ENDPOINT to default 2018-07-09 02:50:53 -03:00
Luna Mendes
d92c09772e
add public api
- generalize elixire adapter into http adapter
 - fix ping adapter not sending a tuple
 - add ServiceWorker.process_work to insert results into the database
2018-07-09 02:48:44 -03:00
Luna Mendes
359c62efd6 Add proper adapter implementations
also add table making for the db
2018-07-08 00:38:14 -03:00
Luna Mendes
9ed1ec60cf add ServiceManager & ServiceWorker 2018-07-07 20:51:43 -03:00
Luna Mendes
78ae8f27f0 add base for python elstat 2018-07-07 19:46:28 -03:00
Luna Mendes
f8269c8aec remove elixir code 2018-07-07 19:06:32 -03:00
Luna Mendes
884c9f736d adapters.elixire: use get/1 instead of get!/1 2018-06-27 20:04:01 -03:00
Luna Mendes
3b84381b90 cowboy: change order of mapping to make sure 2018-06-12 20:21:21 -03:00
Luna Mendes
f12f2f6b59 cowboy: add / to index.html 2018-06-12 20:21:03 -03:00
Luna Mendes
bc01717da0 move frontend to priv folder
also map / to frontend folder inside priv
2018-06-12 19:25:49 -03:00
dd1e8c1fc0
add instructions 2018-06-12 14:57:25 -07:00
5aa93ab47a
Add frontend 2018-06-12 14:56:50 -07:00
Luna Mendes
38df6afb69 api: add cors stuff thing 2018-06-12 17:44:19 -03:00
Luna Mendes
f3727dcd8a add graph 2018-06-12 17:27:37 -03:00
Luna Mendes
16e471d865 Merge branch 'master' into 'master'
redo frontend

See merge request elixire/elstat!1
2018-06-12 19:45:10 +00:00
S Stewart
60afba8ece static: make this 10x better 2018-06-12 14:38:49 -05:00
Luna Mendes
fe9314c8a0 add distillery 2018-06-11 23:18:28 -03:00
Luna Mendes
889169e509 api: remove debug 2018-06-11 19:42:21 -03:00
Luna Mendes
740059a4b4 add adapter.transform_val
also add storage of gathered stats
2018-06-11 19:37:49 -03:00
Luna Mendes
323ebf2569 add adapter_spec to adapters, basic db stuff 2018-06-11 19:19:15 -03:00
Luna Mendes
30da8f31b5 add static/index.html 2018-06-11 18:36:16 -03:00
Luna Mendes
19253502c8 gitignore: add db files 2018-06-11 17:44:02 -03:00
Luna Mendes
e6b06612c3 add /api/current_status 2018-06-11 17:42:40 -03:00
Luna Mendes
62e636cfe7 add many stuff owo 2018-06-11 04:24:16 -03:00
Luna Mendes
4bce1c0146 add basics of cowboy 2018-06-10 18:56:59 -03:00
Luna Mendes
e8004c8aa3 initial commit 👌 2018-06-10 18:02:34 -03:00