1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-17 04:50:02 +02:00
Commit graph

27 commits

Author SHA1 Message Date
6ffc6f66c5 Merge branch 'freebsd-newsyslog-signal-on-rotate'
# Conflicts:
#	src/main.go
2021-12-24 11:09:17 +01:00
0ddbf6dea0 src/main.go: newsyslog actually sends SIGHUP, not SIGUSR1 2021-12-24 11:06:30 +01:00
8be4466d66 src/main.go: in setLogFile() check for null when closing old FD and also check error from Close() 2021-12-24 11:05:47 +01:00
b8b11b1d66 Convert to go module 2021-12-23 16:47:15 +01:00
9781ee6a55 src/eosapi/functions.go: "github.com/liamylian/jsontime/v2" should be "github.com/liamylian/jsontime/v2/v2" 2021-12-23 16:46:55 +01:00
5907d96176 src/eosapi/functions.go: import jsontime with a more descriptive name than "v2" 2021-12-23 16:25:53 +01:00
15a4566b3b src/main.go: add -v and --version flag. 2021-12-02 12:56:09 +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
823832c94e src/main.go: act on the SIGUSR1 signal (sent by logrotate daemon) and reopen log file. 2020-06-26 18:10:05 +02:00
c4e404f873 src/main.go: rewrite openlog() to a more specific setLogFile() function. 2020-06-26 18:04:46 +02:00
9e8ee93983 src/main.go: adding "--log,-l" command line flag to enable file logging. 2020-06-26 14:01:52 +02:00
fe8724aae5 move some "non server" code from src/server.go to src/main.go 2020-06-26 13:47:48 +02:00
1abb1c8249 Merge remote-tracking branch 'origin/bugfix/json-float64-parse-error' into devel 2020-06-24 17:51:21 +02:00
c214908c0c Rewrite the log module.
It is now cleaner and acts as a wrapper around the standard go log module.
2020-06-24 17:45:14 +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
32faaaf418 Adding src/utils/json.go 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
060535f595 Adding src/pid/pid.go 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
a08b1f3458 src/eosapi/functions.go: in send() u.Host can contain port also. so we need to remove it when setting the Host header. 2020-03-20 14:58:59 +01:00
4ef714a750 Move source files to "src" folder. 2020-03-06 11:35:36 +01:00