e9976fbbee
Change github.com/eosswedenorg-go/eos-contract-api-client to github.com/eosswedenorg-go/atomicasset
2022-11-23 16:04:23 +01:00
bcc704c4c0
internal/server.go: in onTcpMessage() check error return value of c.WriteString()
2022-11-23 15:56:59 +01:00
adb1ad3c6d
Fix code formatting
2022-11-23 15:53:26 +01:00
b0e5b455ca
go: update github.com/inconshreveable/log15 to v0.0.0-20221122034931-555555054819
2022-11-22 10:10:00 +01:00
b09e5ba463
go: update github.com/eosswedenorg-go/eosapi to v0.1.3
2022-11-22 10:08:47 +01:00
a17e2929e3
internal/api/eosio_v1.go: HTTP Errors are now handled in eosapi. This changes the log message abit and return haproxy status from "Down" to "Fail"
2022-11-18 15:40:55 +01:00
9102240837
internal/api/eosio_v2.go: HTTP Errors are now handled in the eosapi. This changes the log message abit and return haproxy status from "Down" to "Fail"
2022-11-18 15:40:55 +01:00
0b463e5111
go.mod: Update github.com/eosswedenorg-go/eosapi to v0.1.2
2022-11-18 15:37:41 +01:00
d8d872adae
go.mod: update github.com/stretchr/testify to v1.8.1
2022-10-27 12:58:56 +02:00
6448aeb0f7
Refactor: move internal package from src/ to internal/ and move src/main.go to cmd/eosio-api-healthcheck/main.go
2022-10-27 12:58:30 +02:00
c27abb5ed9
.gitignore: ignore .vscode directory
2022-10-26 14:27:17 +02:00
cb8eec6ff6
Merge branch 'api-refactor' into dev
2022-10-26 10:31:42 +02:00
c168e263df
src/server.go: in onTcpMessage() cleanup logging calls using api.LogParams Add and Combine functions.
2022-10-26 10:29:25 +02:00
15ff583035
src/parse_request.go: in ParseRequest() change switch case into a map with factory functions.
2022-10-25 17:49:22 +02:00
b41fb21f6a
src/parse_request.go: use api.ApiArguments instead of arguments struct
2022-10-25 17:46:32 +02:00
d8c8c14edc
src/api/eosio_contract.go: Adding EosioContractFactory function
2022-10-25 17:43:16 +02:00
9fcffe375a
src/api/eosio_v2.go: Adding EosioV2Factory function
2022-10-25 17:42:46 +02:00
7b78d2632b
src/api/eosio_v1.go: Adding EosioV1Factory function
2022-10-25 17:42:30 +02:00
39927a2441
src/api/debug.go: Adding DebugApiFactory function
2022-10-25 17:31:36 +02:00
6e8ffe718e
src/api/interface.go: Adding Factory function type.
2022-10-25 17:22:33 +02:00
0081f86f0d
src/api/interface.go: Adding ApiArguments struct.
2022-10-25 17:21:56 +02:00
8079962be8
src/api/log_params.go: Adding Combine()
2022-10-21 15:08:33 +02:00
8d2c1c8fa3
src/api/log_params.go: Don't need a ToSlice() function as LogParams is already a slice.
2022-10-21 15:08:00 +02:00
3ab2db7cb3
src/api/log_params_test.go: change assert.Equal() to assert.ElementsMatch() to ignore slice order.
2022-10-21 14:29:02 +02:00
7f387680ec
Version 1.2.5
2022-10-21 13:43:09 +02:00
aa98134a1e
src/utils/json_test.go: refactor test functions into a single one.
2022-10-21 13:19:34 +02:00
3568e7c908
src/utils/parse_log_formatter_test.go: fix whitespace.
2022-10-21 13:14:23 +02:00
818cf7e7e5
move src/helpers.go to src/utils/parse_log_formatter.go
2022-10-21 13:13:02 +02:00
97d9e662ce
scripts/templates/config: Add "--log-format=logfmt" to default options.
2022-10-21 12:43:37 +02:00
76e50d1801
install linux: change config file from /etc/defualts/ to /etc/sysconfig
2022-10-21 12:39:39 +02:00
311d9b34cb
src/main.go: Add cli flag to change logging format.
2022-10-20 15:15:11 +02:00
704965b9cc
Adding src/helpers.go
2022-10-20 15:09:21 +02:00
da28a68943
Version 1.2.4
2022-10-13 14:40:25 +02:00
e36913cc92
README.md: Update documentation to golang v1.16 as the minimum version.
2022-10-13 13:31:13 +02:00
7fe06a144a
.github/workflows/test.yml: rename to test.
2022-10-13 13:04:54 +02:00
822bfaa16e
go: update github.com/eosswedenorg-go/tcp_server to v0.2.0
2022-10-13 12:34:56 +02:00
da87724920
go: update github.com/eosswedenorg-go/eos-contract-api-client
2022-10-13 12:33:01 +02:00
35b81cdcdc
src/api/eosio_contract_test.go: in TestEosioContractHTTP500Down() need to set content-type header.
2022-10-12 18:25:04 +02:00
3e9bf2aa75
Update to go v1.16
2022-10-12 17:19:55 +02:00
f5ff3480e0
go: Update github.com/eosswedenorg-go/eosapi to v0.1.1
2022-10-12 12:25:42 +02:00
8f81047e02
src/parse_request_test.go: compare api's LogInfo() function as comparing the structs directly.
...
Comparing the structs may failsly error because of internal variables (like pointer) not being equal.
So just compare the data we actually care about, and those is returned by LogInfo().
2022-10-12 12:24:52 +02:00
ce1ad75649
go: Upgrade github.com/mattn/go-colorable to v0.1.13
2022-10-12 11:50:49 +02:00
9558aea0a8
go: Upgrade github.com/eosswedenorg-go/pid to v1.0.1
2022-10-12 11:50:17 +02:00
c2cc60dbfb
Makefile adding coverage target
2022-10-03 16:37:51 +02:00
f77edfe321
src/parse_request.go: linter does not like capitalized error strings.
2022-10-03 16:37:34 +02:00
bc6f857c1e
Adding src/api/debug_test.go
2022-10-03 16:32:17 +02:00
0349999540
src/parse_request_test.go: adding test for debug api.
2022-10-03 16:15:47 +02:00
edb063722b
src/api/test.go: rename from TestApi to DebugApi
2022-10-03 16:15:25 +02:00
bda40bf1d5
src/parse_request_test.go: add test for invalid api type.
2022-10-03 16:13:32 +02:00
11c1e8afcd
Version 1.2.3
2022-08-22 18:19:55 +02:00