|
|
c2e0bef26e
|
src/main.go: in eventLoop() combine SIGINT and SIGTERM handling, they have the same functionality.
|
2022-08-21 15:02:27 +02:00 |
|
|
|
bd412bb0eb
|
src/main.go: in eventLoop() create a child logger with a signal parameter and use that to log messages.
|
2022-08-21 15:02:26 +02:00 |
|
|
|
8b86a5d34b
|
src/main.go: Fix a comment.
|
2022-08-21 15:02:26 +02:00 |
|
|
|
44c1d690ef
|
src/main.go: indentation fix.
|
2022-08-21 14:31:31 +02:00 |
|
|
|
2832b50fe7
|
src/main.go: in event loop, also listen for SIGTERM and gracefully shutdown the program.
|
2022-08-21 14:28:22 +02:00 |
|
|
|
b2c6589408
|
src/main.go: Log return from spawnTcpServer()
|
2022-08-21 14:15:06 +02:00 |
|
|
|
14d833e174
|
src/main.go: Only start event loop if server started correctly.
|
2022-08-21 14:12:03 +02:00 |
|
|
|
0e7ed54c1a
|
src/server.go: make spawnTcpServer() return error and remove log calls.
|
2022-08-21 14:09:17 +02:00 |
|
|
|
4653790df4
|
src/main.go: do graceful shutdown on interrupt signal.
|
2022-08-21 14:01:17 +02:00 |
|
|
|
d4cb1a92f9
|
src/main.go: switch go routine/main thread order. run spawnTcpServer() in go routine and run event loop in main thread.
|
2022-08-21 13:46:45 +02:00 |
|
|
|
6907b3ce75
|
src/main.go: skip logging "TCP Server started" its done in spawnTcpServer()
|
2022-08-21 13:35:31 +02:00 |
|
|
|
def3b41842
|
src/server.go: in SpawnTcpServer, do server.Connect() and then server.Listen()
|
2022-08-21 13:34:56 +02:00 |
|
|
|
3fce1f558b
|
src/api/v2.go: rename file to eosio_v2.go
|
2022-08-18 23:19:10 +02:00 |
|
|
|
c8361f6a44
|
src/api/v1.go: rename file to eosio_v1.go
|
2022-08-18 23:18:54 +02:00 |
|
|
|
f98e2ed794
|
src/api/eosio_contract.go: use utils.Time
|
2022-08-18 12:08:05 +02:00 |
|
|
|
e5ddffbc5a
|
src/api/v1.go: use utils.Time
|
2022-08-18 12:08:05 +02:00 |
|
|
|
d3d0fb11d7
|
Adding src/utils/time.go
|
2022-08-18 12:08:05 +02:00 |
|
|
|
c8a128b657
|
src/api/eosio_contract.go: do not return a message to haproxy if postgres is down.
|
2022-08-17 17:46:32 +02:00 |
|
|
|
ec705687bc
|
src/api: rename eosio-contract.go to eosio_contract.go
|
2022-08-17 17:46:05 +02:00 |
|
|
|
ec44e35488
|
Adding src/api/eosio_contract_test.go
|
2022-08-17 17:45:00 +02:00 |
|
|
|
fa6c0bf8a1
|
src/api/eosio-contract.go: Add SetTime() and GetTime()
|
2022-08-17 17:28:01 +02:00 |
|
|
|
816a38acae
|
Adding src/api/log_params_test.go
|
2022-08-17 16:55:22 +02:00 |
|
|
|
a550f67dca
|
src/api/v2_test.go: Add test for LogInfo()
|
2022-08-17 16:55:05 +02:00 |
|
|
|
7f45b746c1
|
src/api/v1_test.go: Add test for LogInfo()
|
2022-08-17 16:54:56 +02:00 |
|
|
|
47ec8ae86e
|
Adding src/api/v2_test.go
|
2022-08-17 16:37:23 +02:00 |
|
|
|
43b3b36d09
|
Adding src/api/v1_test.go
|
2022-08-17 11:40:08 +02:00 |
|
|
|
f16dced21c
|
src/api/v1.go: Adding SetTime() and GetTime()
|
2022-08-17 11:39:28 +02:00 |
|
|
|
513beee79a
|
src/api/eosio-contract.go: remove comment.
|
2022-08-17 11:19:11 +02:00 |
|
|
|
ccd6cb46d2
|
Adding src/utils/json_test.go
|
2022-08-16 20:05:31 +02:00 |
|
|
|
14c4e3764c
|
Remove src/utils/is_url.go
|
2022-08-16 20:03:31 +02:00 |
|
|
|
83a2ddf2ed
|
src/server.go: use code from parse_request.go
|
2022-08-16 20:02:31 +02:00 |
|
|
|
da8a53aa3c
|
Adding src/parse_request.go
|
2022-08-16 19:48:23 +02:00 |
|
|
|
5d27bf0ad2
|
src/api: change v1 and v2 constructor to not expose eosapi package structs.
|
2022-08-16 19:46:39 +02:00 |
|
|
|
303995ffda
|
src/server.go: remove support for old format.
|
2022-08-15 13:34:49 +02:00 |
|
|
|
b1f39ea9fe
|
Version 1.2.2
|
2022-08-15 13:14:48 +02:00 |
|
|
|
768fabe15d
|
src/server.go: Remove some more messages in haproxy responses.
|
2022-08-15 12:47:28 +02:00 |
|
|
|
7215e34152
|
src/server.go: whoops, even the backward support for old format is wrong.
https://xkcd.com/1739
|
2022-08-15 12:23:34 +02:00 |
|
|
|
1a3594af54
|
Version 1.2.1
|
2022-08-12 18:03:41 +02:00 |
|
|
|
ec7a46f5ae
|
src/server.go: Add test api.
|
2022-08-12 17:57:24 +02:00 |
|
|
|
1d6a9c0950
|
Adding src/api/test.go
|
2022-08-12 17:56:59 +02:00 |
|
|
|
879d613b46
|
src/api: do not send a message in haproxy response (it does not like that).
|
2022-08-12 17:16:01 +02:00 |
|
|
|
99958e2165
|
src/server.go: rename arguments.block_time to num_blocks. and convert to seconds for v1/contract but not v2.
|
2022-05-31 10:22:27 +02:00 |
|
|
|
a3be529b78
|
Version 1.2
|
2022-05-18 10:09:49 +02:00 |
|
|
|
e0174ea3b7
|
src/server.go: Minor cleanup.
|
2022-05-17 18:54:08 +02:00 |
|
|
|
32619b293f
|
src/server.go: Add backward support for the old request format.
|
2022-05-17 18:52:17 +02:00 |
|
|
|
1912ef1790
|
Adding src/utils/is_url.go
|
2022-05-17 18:51:25 +02:00 |
|
|
|
affc56393e
|
src/server.go: fix an out-of-bounds bug in request parameter parsing code.
|
2022-05-17 18:50:58 +02:00 |
|
|
|
4ff008b312
|
Version 1.2-rc2
|
2022-03-02 16:59:45 +01:00 |
|
|
|
3aece958b1
|
Update to github.com/eosswedenorg-go/haproxy@v0.1.0
|
2022-03-02 16:58:32 +01:00 |
|
|
|
fa740af0b1
|
src/api/eosio-contract.go: copy paste error. should ofc not be Postgres in the Redis statement.
|
2022-03-02 16:29:21 +01:00 |
|