diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 5ddfa2f..7ab5ff5 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -71,16 +71,13 @@ jobs: max-parallel: 1 matrix: include: - - cluster: prod-sng + - cluster: prod-ams network_name: mainnet network_version: v2 - - cluster: prod-sng - network_name: sejong - network_version: v2 - - cluster: prod-sng + - cluster: prod-ams network_name: lisbon network_version: v2 - - cluster: prod-sng + - cluster: prod-ams network_name: berlin network_version: v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a72c86f..7e1f2e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,16 +74,13 @@ jobs: max-parallel: 1 matrix: include: - - cluster: prod-ams + - cluster: prod-sng network_name: mainnet network_version: v2 - - cluster: prod-ams - network_name: sejong - network_version: v2 - - cluster: prod-ams + - cluster: prod-sng network_name: lisbon network_version: v2 - - cluster: prod-ams + - cluster: prod-sng network_name: berlin network_version: v2 diff --git a/Makefile b/Makefile index 2de54e1..a663464 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,12 @@ test: up-dbs test-unit test-integration up-dbs: ## Bring up the DBs - docker-compose -f docker-compose.db.yml up -d + docker compose -f docker-compose.db.yml up -d echo "Waiting for backend to populate some records..." sleep 10 down-dbs: ## Take down the DBs - docker-compose -f docker-compose.db.yml down + docker compose -f docker-compose.db.yml down test-unit: ## Run unit tests - Need DB compose up cd src && go test ./... -v --tags=unit @@ -22,13 +22,13 @@ test-coverage: up-dbs ## Run unit tests - Need DB compose up cd src && go test ./... -v -race -covermode=atomic -coverprofile=../coverage.out pull: - docker-compose -f docker-compose.db.yml -f docker-compose.yml pull + docker compose -f docker-compose.db.yml -f docker-compose.yml pull up: ## Bring everything up as containers - docker-compose -f docker-compose.db.yml -f docker-compose.yml up -d + docker compose -f docker-compose.db.yml -f docker-compose.yml up -d down: ## Take down all the containers - docker-compose -f docker-compose.db.yml -f docker-compose.yml down -v + docker compose -f docker-compose.db.yml -f docker-compose.yml down -v clean: docker volume rm $(docker volume ls -q) @@ -37,16 +37,16 @@ build-swagger: ## Build the swagger docs cd src/api && bash generateSwagDocs.sh build: ## Build everything - docker-compose build + docker compose build ps: ## List all containers and running status - docker-compose -f docker-compose.db.yml -f docker-compose.yml ps + docker compose -f docker-compose.db.yml -f docker-compose.yml ps postgres-console: ## Start postgres terminal - docker-compose -f docker-compose.db.yml -f docker-compose.yml exec postgres psql -U postgres + docker compose -f docker-compose.db.yml -f docker-compose.yml exec postgres psql -U postgres redis-console: ## Start redis terminal - docker-compose -f docker-compose.db.yml -f docker-compose.yml exec redis redis-cli + docker compose -f docker-compose.db.yml -f docker-compose.yml exec redis redis-cli help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}' diff --git a/src/api/api.go b/src/api/api.go index c709575..e08b454 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -77,8 +77,8 @@ func Start() *fiber.App { } // Version -// @Summary Show the status of server. -// @Description get the status of server. +// @Summary Show the version of server. +// @Description get the version of server. // @Tags Version // @Accept */* // @Produce json @@ -95,8 +95,8 @@ func handlerVersion(c *fiber.Ctx) error { } // Metadata -// @Summary Show the status of server. -// @Description get the status of server. +// @Summary Show the metadata of server. +// @Description get the metadata of server. // @Tags Version // @Accept */* // @Produce json diff --git a/src/api/docs/docs.go b/src/api/docs/docs.go index 3c33d21..ce18baa 100644 --- a/src/api/docs/docs.go +++ b/src/api/docs/docs.go @@ -1,10 +1,9 @@ -// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// This file was generated by swaggo/swag +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" -const docTemplate_swagger = `{ +const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { @@ -544,7 +543,7 @@ const docTemplate_swagger = `{ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Circulating Supply", "responses": { "200": { "description": "OK", @@ -571,7 +570,7 @@ const docTemplate_swagger = `{ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Market Cap", "responses": { "200": { "description": "OK", @@ -598,7 +597,7 @@ const docTemplate_swagger = `{ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Total Supply", "responses": { "200": { "description": "OK", @@ -653,7 +652,7 @@ const docTemplate_swagger = `{ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Circulating Supply", "responses": { "200": { "description": "OK", @@ -680,7 +679,7 @@ const docTemplate_swagger = `{ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Market Cap", "responses": { "200": { "description": "OK", @@ -707,7 +706,7 @@ const docTemplate_swagger = `{ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Total Supply", "responses": { "200": { "description": "OK", @@ -1428,7 +1427,7 @@ const docTemplate_swagger = `{ }, "/metadata": { "get": { - "description": "get the status of server.", + "description": "get the metadata of server.", "consumes": [ "*/*" ], @@ -1438,7 +1437,7 @@ const docTemplate_swagger = `{ "tags": [ "Version" ], - "summary": "Show the status of server.", + "summary": "Show the metadata of server.", "responses": { "200": { "description": "OK", @@ -1452,7 +1451,7 @@ const docTemplate_swagger = `{ }, "/version": { "get": { - "description": "get the status of server.", + "description": "get the version of server.", "consumes": [ "*/*" ], @@ -1462,7 +1461,7 @@ const docTemplate_swagger = `{ "tags": [ "Version" ], - "summary": "Show the status of server.", + "summary": "Show the version of server.", "responses": { "200": { "description": "OK", @@ -1970,8 +1969,8 @@ const docTemplate_swagger = `{ } }` -// SwaggerInfo_swagger holds exported Swagger Info so clients can modify it -var SwaggerInfo_swagger = &swag.Spec{ +// SwaggerInfo holds exported Swagger Info so clients can modify it +var SwaggerInfo = &swag.Spec{ Version: "2.0", Host: "", BasePath: "", @@ -1979,9 +1978,11 @@ var SwaggerInfo_swagger = &swag.Spec{ Title: "Icon Go API", Description: "The icon tracker API", InfoInstanceName: "swagger", - SwaggerTemplate: docTemplate_swagger, + SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", } func init() { - swag.Register(SwaggerInfo_swagger.InstanceName(), SwaggerInfo_swagger) + swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) } diff --git a/src/api/docs/swagger.json b/src/api/docs/swagger.json index f06a36c..68fcc7a 100644 --- a/src/api/docs/swagger.json +++ b/src/api/docs/swagger.json @@ -535,7 +535,7 @@ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Circulating Supply", "responses": { "200": { "description": "OK", @@ -562,7 +562,7 @@ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Market Cap", "responses": { "200": { "description": "OK", @@ -589,7 +589,7 @@ "tags": [ "Stats" ], - "summary": "Get Stats", + "summary": "Get Total Supply", "responses": { "200": { "description": "OK", @@ -644,7 +644,7 @@ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Circulating Supply", "responses": { "200": { "description": "OK", @@ -671,7 +671,7 @@ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Market Cap", "responses": { "200": { "description": "OK", @@ -698,7 +698,7 @@ "tags": [ "Supplies" ], - "summary": "Get Supplies", + "summary": "Get Total Supply", "responses": { "200": { "description": "OK", @@ -1419,7 +1419,7 @@ }, "/metadata": { "get": { - "description": "get the status of server.", + "description": "get the metadata of server.", "consumes": [ "*/*" ], @@ -1429,7 +1429,7 @@ "tags": [ "Version" ], - "summary": "Show the status of server.", + "summary": "Show the metadata of server.", "responses": { "200": { "description": "OK", @@ -1443,7 +1443,7 @@ }, "/version": { "get": { - "description": "get the status of server.", + "description": "get the version of server.", "consumes": [ "*/*" ], @@ -1453,7 +1453,7 @@ "tags": [ "Version" ], - "summary": "Show the status of server.", + "summary": "Show the version of server.", "responses": { "200": { "description": "OK", diff --git a/src/api/docs/swagger.yaml b/src/api/docs/swagger.yaml index 5c6d388..d089c60 100644 --- a/src/api/docs/swagger.yaml +++ b/src/api/docs/swagger.yaml @@ -694,7 +694,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Stats + summary: Get Circulating Supply tags: - Stats /api/v1/stats/market-cap: @@ -712,7 +712,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Stats + summary: Get Market Cap tags: - Stats /api/v1/stats/total-supply: @@ -730,7 +730,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Stats + summary: Get Total Supply tags: - Stats /api/v1/supplies: @@ -767,7 +767,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Supplies + summary: Get Circulating Supply tags: - Supplies /api/v1/supplies/market-cap: @@ -785,7 +785,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Supplies + summary: Get Market Cap tags: - Supplies /api/v1/supplies/total-supply: @@ -803,7 +803,7 @@ paths: schema: additionalProperties: true type: object - summary: Get Supplies + summary: Get Total Supply tags: - Supplies /api/v1/transactions: @@ -1277,7 +1277,7 @@ paths: get: consumes: - '*/*' - description: get the status of server. + description: get the metadata of server. produces: - application/json responses: @@ -1286,14 +1286,14 @@ paths: schema: additionalProperties: true type: object - summary: Show the status of server. + summary: Show the metadata of server. tags: - Version /version: get: consumes: - '*/*' - description: get the status of server. + description: get the version of server. produces: - application/json responses: @@ -1302,7 +1302,7 @@ paths: schema: additionalProperties: true type: object - summary: Show the status of server. + summary: Show the version of server. tags: - Version swagger: "2.0" diff --git a/src/api/rest/stats.go b/src/api/rest/stats.go index d6f7530..0946a74 100644 --- a/src/api/rest/stats.go +++ b/src/api/rest/stats.go @@ -2,9 +2,10 @@ package rest import ( "encoding/json" + "strconv" + "github.com/gofiber/fiber/v2" "github.com/sudoblockio/icon-go-api/config" - "strconv" ) func StatsAddHandlers(app *fiber.App) { @@ -39,7 +40,7 @@ func handlerGetStats(c *fiber.Ctx) error { } // Circulating Supply -// @Summary Get Stats +// @Summary Get Circulating Supply // @Description get circulating supply (total supply - burn wallet balance) // @Tags Stats // @BasePath /api/v1 @@ -53,7 +54,7 @@ func handlerGetCirculatingSupply(c *fiber.Ctx) error { } // Total Supply -// @Summary Get Stats +// @Summary Get Total Supply // @Description get total supply // @Tags Stats // @BasePath /api/v1 @@ -67,7 +68,7 @@ func handlerGetTotalSupply(c *fiber.Ctx) error { } // Market Cap -// @Summary Get Stats +// @Summary Get Market Cap // @Description get mkt cap (Coin Gecko Price * circulating supply) // @Tags Stats // @BasePath /api/v1 diff --git a/src/api/rest/supplies.go b/src/api/rest/supplies.go index b383413..5a7c256 100644 --- a/src/api/rest/supplies.go +++ b/src/api/rest/supplies.go @@ -2,9 +2,10 @@ package rest import ( "encoding/json" + "strconv" + "github.com/gofiber/fiber/v2" "github.com/sudoblockio/icon-go-api/config" - "strconv" ) func SuppliesAddHandlers(app *fiber.App) { @@ -39,7 +40,7 @@ func handlerGetSupplies(c *fiber.Ctx) error { } // Circulating Supply -// @Summary Get Supplies +// @Summary Get Circulating Supply // @Description get circulating supply (total supply - burn wallet balance) // @Tags Supplies // @BasePath /api/v1 @@ -53,7 +54,7 @@ func handlerGetSuppliesCirculatingSupply(c *fiber.Ctx) error { } // Total Supply -// @Summary Get Supplies +// @Summary Get Total Supply // @Description get total supply // @Tags Supplies // @BasePath /api/v1 @@ -67,7 +68,7 @@ func handlerGetSuppliesTotalSupply(c *fiber.Ctx) error { } // Market Cap -// @Summary Get Supplies +// @Summary Get Market Cap // @Description get mkt cap (Coin Gecko Price * circulating supply) // @Tags Supplies // @BasePath /api/v1 diff --git a/src/go.mod b/src/go.mod index 0e4a756..6a1f600 100644 --- a/src/go.mod +++ b/src/go.mod @@ -16,7 +16,7 @@ require ( github.com/kelseyhightower/envconfig v1.4.0 github.com/prometheus/client_golang v1.12.2 github.com/stretchr/testify v1.7.1 - github.com/swaggo/swag v1.16.2 + github.com/swaggo/swag v1.16.3 go.uber.org/zap v1.21.0 gorm.io/driver/postgres v1.3.8 gorm.io/gorm v1.23.8 @@ -28,9 +28,12 @@ require ( github.com/DATA-DOG/go-sqlmock v1.5.0 // indirect github.com/InVisionApp/go-logger v1.0.1 // indirect github.com/KyleBanks/depth v1.2.1 // indirect + github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect github.com/andybalholm/brotli v1.0.4 // indirect + github.com/arsmn/fiber-swagger/v2 v2.31.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/fasthttp/websocket v1.5.0 // indirect @@ -38,6 +41,7 @@ require ( github.com/go-openapi/jsonreference v0.20.0 // indirect github.com/go-openapi/spec v0.20.6 // indirect github.com/go-openapi/swag v0.21.1 // indirect + github.com/golang/snappy v0.0.1 // indirect github.com/google/go-cmp v0.5.6 // indirect github.com/jackc/chunkreader/v2 v2.0.1 // indirect github.com/jackc/pgconn v1.12.1 // indirect @@ -51,26 +55,33 @@ require ( github.com/jinzhu/now v1.1.5 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/klauspost/compress v1.15.8 // indirect + github.com/linkedin/goavro/v2 v2.9.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.36.0 // indirect github.com/prometheus/procfs v0.7.3 // indirect + github.com/riferrei/srclient v0.3.0 // indirect + github.com/russross/blackfriday/v2 v2.0.1 // indirect github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d // indirect + github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect github.com/sirupsen/logrus v1.8.0 // indirect github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a // indirect + github.com/urfave/cli/v2 v2.3.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasthttp v1.38.0 // indirect github.com/valyala/tcplisten v1.0.0 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.8.0 // indirect - golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/sys v0.6.0 // indirect - golang.org/x/text v0.8.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sync v0.1.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect golang.org/x/tools v0.7.0 // indirect google.golang.org/protobuf v1.28.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect + sigs.k8s.io/yaml v1.3.0 // indirect ) diff --git a/src/go.sum b/src/go.sum index 1095b34..c1b870f 100644 --- a/src/go.sum +++ b/src/go.sum @@ -49,6 +49,7 @@ github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdko github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/agiledragon/gomonkey/v2 v2.3.1/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= @@ -57,6 +58,8 @@ github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6/go.mod h1:SGn github.com/alicebob/miniredis v2.5.0+incompatible/go.mod h1:8HZjEj4yU0dwhYHky+DxYx+6BMjkBbe5ONFIF1MXffk= github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY= github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/arsmn/fiber-swagger/v2 v2.31.1 h1:VmX+flXiGGNqLX3loMEEzL3BMOZFSPwBEWR04GA6Mco= +github.com/arsmn/fiber-swagger/v2 v2.31.1/go.mod h1:ZHhMprtB3M6jd2mleG03lPGhHH0lk9u3PtfWS1cBhMA= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -82,6 +85,7 @@ github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -131,6 +135,7 @@ github.com/go-redis/redis v6.15.9+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8w github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gofiber/fiber/v2 v2.31.0/go.mod h1:1Ega6O199a3Y7yDGuM9FyXDPYQfv+7/y48wl6WCwUF4= github.com/gofiber/fiber/v2 v2.32.0/go.mod h1:CMy5ZLiXkn6qwthrl03YMyW1NLfj0rhxz2LKl4t7ZTY= github.com/gofiber/fiber/v2 v2.35.0 h1:ct+jKw8Qb24WEIZx3VV3zz9VXyBZL7mcEjNaqj3g0h0= github.com/gofiber/fiber/v2 v2.35.0/go.mod h1:tgCr+lierLwLoVHHO/jn3Niannv34WRkQETU8wiL9fQ= @@ -169,6 +174,8 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -290,6 +297,8 @@ github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8= github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/linkedin/goavro/v2 v2.9.7 h1:Vd++Rb/RKcmNJjM0HP/JJFMEWa21eUBVKPYlKehOGrM= +github.com/linkedin/goavro/v2 v2.9.7/go.mod h1:UgQUb2N/pmueQYH9bfqFioWxzYCZXSfF8Jw03O5sjqA= github.com/magefile/mage v1.10.0 h1:3HiXzCUY12kh9bIuyXShaVe529fJfyqoVM42o/uom2g= github.com/magefile/mage v1.10.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -353,10 +362,13 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/riferrei/srclient v0.3.0 h1:sNSz2P4ts0fuXr5/nNyD0lCdtF+AbN8Vq77CJhQriAg= +github.com/riferrei/srclient v0.3.0/go.mod h1:SmCz0lrYQ1pLqXlYq0yPnRccHLGh+llDA0i6hecPeW8= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= +github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/savsgio/gotils v0.0.0-20211223103454-d0aaa54c5899/go.mod h1:oejLrk1Y/5zOF+c/aHtXqn3TFlzzbAgPWg8zBiAHDas= @@ -366,6 +378,7 @@ github.com/shirou/gopsutil v2.18.12+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMT github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= @@ -392,10 +405,14 @@ github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a/go.mod h1:lKJPbtWzJ9J github.com/swaggo/swag v1.8.1/go.mod h1:ugemnJsPZm/kRwFUnzBlbHRd0JY9zE1M4F+uy2pAaPQ= github.com/swaggo/swag v1.16.2 h1:28Pp+8DkQoV+HLzLx8RGJZXNGKbFqnuvSbAAtoxiY04= github.com/swaggo/swag v1.16.2/go.mod h1:6YzXnDcpr0767iOejs318CwYkCQqyGer6BizOg03f+E= +github.com/swaggo/swag v1.16.3 h1:PnCYjPCah8FK4I26l2F/KQ4yz3sILcVUN3cTlBFA9Pg= +github.com/swaggo/swag v1.16.3/go.mod h1:DImHIuOFXKpMFAQjcC7FG4m3Dg4+QuUgUzJmKjI/gRk= +github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.33.0/go.mod h1:KJRK/MXx0J+yd0c5hlR+s1tIHD72sniU8ZJjl97LIw4= +github.com/valyala/fasthttp v1.34.0/go.mod h1:epZA5N+7pY6ZaEKRmstzOuYJx9HI8DI1oaCGZpdH4h0= github.com/valyala/fasthttp v1.35.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= github.com/valyala/fasthttp v1.38.0 h1:yTjSSNjuDi2PPvXY2836bIwLmiTS2T4T9p1coQshpco= github.com/valyala/fasthttp v1.38.0/go.mod h1:t/G+3rLek+CyY9bnIE+YlMRddxVAAGjhxndDB4i4C0I= @@ -451,6 +468,8 @@ golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d h1:sK3txAijHtOK88l68nt020reeT1ZdKLIYetKl95FzVY= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -524,6 +543,8 @@ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -539,8 +560,11 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -594,6 +618,8 @@ golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -607,6 +633,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -784,3 +812,5 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=