From 87d1f8de3b233404d679965af5791d939a0edcfa Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 14 Dec 2021 21:03:15 +0330 Subject: half-updateds the readme --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e8a2a93..dcc2af2 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ `hived` is the second version of my personal cryptocurrency server:
* hived is currently using redis as its DB because its tiny and fast.
* It sends notifications through telegram.
+* telebot and hived talk with grpc.
Currently it has 5 endpoint:
@@ -24,9 +25,16 @@ ETH*60/(DOGE*300000) < 4. ``` You can have as many parameters as you like. The requests for the crypto prices are all turned into individual goroutines so it's fast.
The expression evaluation is powered by [govaluate](https://github.com/Knetic/govaluate). So for a set of rules and what you can and cannot do please check the documentation over there.
+ #### DELETE Deletes the key from the DB so you will no longer receive updates.
+#### PUT +Updates the alert.
+ +#### GET +Fetch the alert with the given name.
+ ### /ex Gets the list of currencies that are available to be traded.
@@ -53,6 +61,10 @@ CHANGELLY_API_SECRET:"my-changelly-api-secret" If you want to use docker-compose, it's as simple as running `docker-compose up`. You just need to provide the files. You can check the file names in the docker-compose file.
Both the server itself and the redis image are alpine-based so they're pretty small.
+## telebot +`telebot` is the service that handles sending notifications through telegram. telebot uses grpc.
+You can find the grpc repo for it [here](https://github.com/terminaldweller/grpc).
+ ## Gitpod `hived` is gitpod-ready. Gitpod might need to install some go lsp tools once it is loaded. You will get prompted for those.
@@ -63,7 +75,7 @@ You can find the swagger and postman docs under `/api`.
* ~~fix travis~~ * add unit tests * ~~fix `hived -help` crashing~~ -* haproxy -* turn the telegram bot into its own microservice +* ~~haproxy~~ +* ~~turn the telegram bot into its own microservice~~ * update openapi3.0 spec and postman -* telegram bot's endpoint should be gRPC +* ~~telegram bot's endpoint should be gRPC~~ -- cgit v1.2.3