|
|
0e7ed54c1a
|
src/server.go: make spawnTcpServer() return error and remove log calls.
|
2022-08-21 14:09: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 |
|
|
|
def3b41842
|
src/server.go: in SpawnTcpServer, do server.Connect() and then server.Listen()
|
2022-08-21 13:34:56 +02:00 |
|
|
|
83a2ddf2ed
|
src/server.go: use code from parse_request.go
|
2022-08-16 20:02:31 +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 |
|
|
|
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 |
|
|
|
ec7a46f5ae
|
src/server.go: Add test api.
|
2022-08-12 17:57:24 +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 |
|
|
|
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 |
|
|
|
affc56393e
|
src/server.go: fix an out-of-bounds bug in request parameter parsing code.
|
2022-05-17 18:50:58 +02:00 |
|
|
|
3aece958b1
|
Update to github.com/eosswedenorg-go/haproxy@v0.1.0
|
2022-03-02 16:58:32 +01:00 |
|
|
|
3303ff0905
|
go.mod: skip "internal" and use the root module and path.
|
2022-03-02 16:12:13 +01:00 |
|
|
|
bb375296d8
|
src/server.go: adding "contract" api
|
2022-03-02 16:00:22 +01:00 |
|
|
|
be945886e4
|
src/server.go: don't fallback to v1 api, return error on invalid api instead.
|
2022-03-02 16:00:21 +01:00 |
|
|
|
f6aabb7ed8
|
Change order of request parameters: api field moved from position 3 to 1 and are now required.
|
2022-03-02 16:00:21 +01:00 |
|
|
|
d5ec841586
|
src/api/interface.go: make LogInfo() return LogParams
|
2022-03-02 16:00:20 +01:00 |
|
|
|
8e41cbfc5b
|
src/api/interface.go: remove Name() and define LogInfo() instead.
|
2022-03-02 16:00:19 +01:00 |
|
|
|
ddc7406a4c
|
src/server.go: refactor eosio v1/v2 api code into it's own module that implements a common interface
|
2022-03-02 16:00:19 +01:00 |
|
|
|
fa9a943215
|
Convert hard tabs to soft.
|
2022-03-02 15:56:29 +01:00 |
|
|
|
44a01344c7
|
Replace local eosapi with github.com/eosswedenorg-go/eosapi
|
2022-03-02 15:54:45 +01:00 |
|
|
|
1d8b47762e
|
replace standard logger for github.com/inconshreveable/log15
|
2022-03-02 15:53:36 +01:00 |
|
|
|
3a4c827f8e
|
replace github.com/firstrow/tcp_server with github.com/eosswedenorg-go/tcp_server
|
2022-03-02 15:50:05 +01:00 |
|
|
|
10a12816fa
|
Replace local haproxy module with the one located at github.com/eosswedenorg-go/haproxy
|
2022-03-02 15:47:30 +01:00 |
|
|
|
b8b11b1d66
|
Convert to go module
|
2021-12-23 16:47:15 +01:00 |
|
|
|
324356f9f4
|
Merge branch 'master' into devel
|
2020-11-04 13:59:58 +01:00 |
|
|
|
69253eaab3
|
Minor indentation fixes.
|
2020-11-02 10:43:07 +01:00 |
|
xebb
|
2a521ab333
|
Adding check for HTTPStatusCode to support varnish
|
2020-10-11 11:51:06 +02:00 |
|
|
|
fe8724aae5
|
move some "non server" code from src/server.go to src/main.go
|
2020-06-26 13:47:48 +02:00 |
|
|
|
ba6b79ae0e
|
src/server.go: in check_api_v2() use utils.JsonGetInt64() to safely get a int64 value from json.
If json contains "nil" value, the type assertion will fail. JsonGetInt64() will in that case return "0"
|
2020-06-24 14:44:14 +02:00 |
|
|
|
a310cb041d
|
src/server.go: make tcp message function a "real" function instead of a inline one.
|
2020-06-23 13:07:08 +02:00 |
|
|
|
ef13af4eb7
|
src/server.go: Minor cleanup.
|
2020-06-23 12:56:47 +02:00 |
|
|
|
66bc6f97af
|
src/server.go: add "host" as a optional fourth parameter.
|
2020-06-23 12:56:47 +02:00 |
|
|
|
3aba653038
|
Define eosapi.ReqParams struct that includes a optional Host parameter.
If left empty, Host parsed from eosapi.ReqParams.Url will be used (like before).
|
2020-06-23 12:56:47 +02:00 |
|
|
|
e0c7cfcc62
|
src/server.go: Use pid package and write pid file.
|
2020-06-11 19:01:32 +02:00 |
|
|
|
2b823c1dd3
|
Adding getopts package to parse pid file path.
|
2020-06-11 19:01:32 +02:00 |
|
|
|
4ef714a750
|
Move source files to "src" folder.
|
2020-03-06 11:35:36 +01:00 |
|