mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-19 05:10:02 +02:00
Convert to go module
This commit is contained in:
parent
9781ee6a55
commit
b8b11b1d66
9 changed files with 75 additions and 6 deletions
24
go.mod
Normal file
24
go.mod
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
module github.com/eosswedenorg/eosio-api-healthcheck
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
internal/eosapi v1.0.0
|
||||
internal/haproxy v1.0.0
|
||||
internal/log v1.0.0
|
||||
internal/pid v1.0.0
|
||||
internal/utils v1.0.0
|
||||
|
||||
github.com/firstrow/tcp_server v0.1.0
|
||||
github.com/pborman/getopt/v2 v2.1.0
|
||||
)
|
||||
|
||||
replace internal/haproxy => ./src/haproxy
|
||||
|
||||
replace internal/eosapi => ./src/eosapi
|
||||
|
||||
replace internal/log => ./src/log
|
||||
|
||||
replace internal/pid => ./src/pid
|
||||
|
||||
replace internal/utils => ./src/utils
|
||||
25
go.sum
Normal file
25
go.sum
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/firstrow/tcp_server v0.1.0 h1:SeaKjoPUqSgwb8NLbXtcWEQS1H+QZ2hwPBBLd1TnGo4=
|
||||
github.com/firstrow/tcp_server v0.1.0/go.mod h1:Yw3e670k1AHRzhd+WrOEvXLCMh5NDH01Kc/o0QR1GVQ=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/imroc/req v0.3.2 h1:M/JkeU6RPmX+WYvT2vaaOL0K+q8ufL5LxwvJc4xeB4o=
|
||||
github.com/imroc/req v0.3.2/go.mod h1:F+NZ+2EFSo6EFXdeIbpfE9hcC233id70kf0byW97Caw=
|
||||
github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
|
||||
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/liamylian/jsontime/v2 v2.0.0 h1:3if2kDW/boymUdO+4Qj/m4uaXMBSF6np9KEgg90cwH0=
|
||||
github.com/liamylian/jsontime/v2 v2.0.0/go.mod h1:UHp1oAPqCBfspokvGmaGe0IAl2IgOpgOgDaKPcvcGGY=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/pborman/getopt/v2 v2.1.0 h1:eNfR+r+dWLdWmV8g5OlpyrTYHkhVNxHBdN2cCrJmOEA=
|
||||
github.com/pborman/getopt/v2 v2.1.0/go.mod h1:4NtW75ny4eBw9fO1bhtNdYTlZKYX5/tBLtsOpwKIKd0=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
8
src/eosapi/go.mod
Normal file
8
src/eosapi/go.mod
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
module internal/eosapi
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/imroc/req v0.3.2
|
||||
github.com/liamylian/jsontime/v2 v2.0.0
|
||||
)
|
||||
3
src/haproxy/go.mod
Normal file
3
src/haproxy/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module internal/haproxy
|
||||
|
||||
go 1.14
|
||||
3
src/log/go.mod
Normal file
3
src/log/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module internal/log
|
||||
|
||||
go 1.14
|
||||
|
|
@ -3,8 +3,8 @@ package main
|
|||
|
||||
import (
|
||||
"os"
|
||||
"./log"
|
||||
"./pid"
|
||||
"internal/pid"
|
||||
"internal/log"
|
||||
"github.com/pborman/getopt/v2"
|
||||
)
|
||||
|
||||
|
|
|
|||
3
src/pid/go.mod
Normal file
3
src/pid/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module internal/pid
|
||||
|
||||
go 1.14
|
||||
|
|
@ -5,10 +5,10 @@ import (
|
|||
"time"
|
||||
"strings"
|
||||
"strconv"
|
||||
"./log"
|
||||
"./haproxy"
|
||||
"./eosapi"
|
||||
"./utils"
|
||||
"internal/log"
|
||||
"internal/haproxy"
|
||||
"internal/eosapi"
|
||||
"internal/utils"
|
||||
"github.com/firstrow/tcp_server"
|
||||
)
|
||||
|
||||
|
|
|
|||
3
src/utils/go.mod
Normal file
3
src/utils/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module internal/utils
|
||||
|
||||
go 1.14
|
||||
Loading…
Add table
Add a link
Reference in a new issue