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
566071c997
Makefile: for dpkg-buildpackage skip building source and only build binary package.
2022-08-22 18:19:46 +02:00
ad5830ed34
scripts/install_freebsd.sh: pass description correctly to rc.conf
2022-08-22 17:44:37 +02:00
0f4f4ad994
scripts/templates/rc.conf: prefix DESCRIPTION
2022-08-22 17:44:37 +02:00
d0d32ed740
scripts/install_linux.sh: Pass description correctly to sysunit service file.
2022-08-22 17:44:36 +02:00
6de7ca549f
scripts/templates/sysunit.service: prefix DESCRIPTION variable.
2022-08-22 17:44:36 +02:00
22255b9758
.github/workflows/release.yml: Remove ubuntu-18.04 as github will drop support on 2022-12-01
2022-08-22 17:44:33 +02:00
843d30bb3d
set-version.sh: handle spaces for Makefile variable.
2022-08-22 15:43:13 +02:00
c94f274da3
debian/changelog: Update v1.2.3 with a real changelog.
2022-08-22 14:19:30 +02:00
47077aa84c
.github/workflows/release.yml: Update to work with the new buildsystem.
2022-08-22 14:19:30 +02:00
da4694eb6b
debian/control: description to long :)
2022-08-22 14:19:30 +02:00
e2d3e3e59f
debian/rules pass $DEB_VERSION as VersionString to linker.
2022-08-22 14:19:29 +02:00
189b4f2207
scripts/info.sh: remove program version, defined in Makefile.
2022-08-22 14:19:29 +02:00
d2db6ea4b3
set-version.sh: Update to handle debian/changes and PROGRAM_VERSION in Makefile.
2022-08-22 14:19:29 +02:00
4b3ae5431c
Makefile: Set VersionString variable when linking.
2022-08-21 23:52:26 +02:00
b67b5d6b7e
src/main.go: use a global variable to display version number, this should be set by the linker during build.
2022-08-21 20:46:40 +02:00
53bc1cfbd8
debian/control: Add extended description
2022-08-21 20:26:09 +02:00
83edcac967
debian/rules: pass PREFIX=/usr to INSTALL_FLAGS as debian packages should not install anything in /usr/local
2022-08-21 20:17:13 +02:00
08e7041246
debian/rules: pass "--buildmode=pie" in GOBUILDFLAGS to install.
2022-08-21 20:09:12 +02:00
d33abd05f6
debian/control: Should have Standards-Version = 4.5.0
2022-08-21 20:08:25 +02:00
e44a5ab86e
Makefile: in build target, skip creating build/.buildinfo. its not needed.
2022-08-21 20:08:01 +02:00
fe1beaa616
Makefile: remove GOCCFLAGS and GOLDFLAGS in favor for GOBUILDFLAGS
2022-08-21 20:03:03 +02:00
c2e0bef26e
src/main.go: in eventLoop() combine SIGINT and SIGTERM handling, they have the same functionality.
2022-08-21 15:02:27 +02:00