From 2aff6210b5ce2d05457c32243b370a324418434b Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 3 Jun 2020 14:02:41 +0300 Subject: [PATCH] update libs --- .version | 2 +- CHANGELOG.md | 4 ++++ go.mod | 2 +- go.sum | 6 ++++++ main.go | 3 ++- proxy/grpc/handlers/common.go | 2 +- proxy/grpc/handlers/handle_get_file.go | 2 +- proxy/grpc/handlers/handle_json.go | 2 +- proxy/grpc/handlers/handle_send_multipart_data.go | 2 +- 9 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.version b/.version index ec1cf33..24ba9a3 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.6.3 +2.7.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c7a2ef..93f1b09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.7.0 +* add support Redis Sentinel +* update grpc client +* code cleanup ## 2.6.3 * fix search from locations * fix proxying URI in http and ws diff --git a/go.mod b/go.mod index 06c981c..add2455 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/golang/protobuf v1.3.5 github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f github.com/integration-system/isp-journal v1.5.0 - github.com/integration-system/isp-lib/v2 v2.4.0 + github.com/integration-system/isp-lib/v2 v2.5.0 github.com/integration-system/isp-log v1.1.3 github.com/json-iterator/go v1.1.9 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index ed0ed94..474ce39 100644 --- a/go.sum +++ b/go.sum @@ -152,9 +152,13 @@ github.com/integration-system/isp-io v0.0.0-20190723122940-3daf588d878f h1:nJGOo github.com/integration-system/isp-io v0.0.0-20190723122940-3daf588d878f/go.mod h1:1cjy4g5F8WXrOB3l/bL3mw+TCWDppOL1pz08wOAMi9Y= github.com/integration-system/isp-journal v1.5.0 h1:7Lpt7dHhpq1zRY4qRRYUMiEnaQZbxyPHRcy/ik/Vm8I= github.com/integration-system/isp-journal v1.5.0/go.mod h1:B6cLJqjNL+XHWv4IzKt5aIZ7AjbHX2tQFXgRSaWNNIo= +github.com/integration-system/isp-lib v1.9.0 h1:r2vO4sQ9qfOicYmjBQkcWAas1xrHLDcNWUc0iI1DmOM= +github.com/integration-system/isp-lib v2.1.0+incompatible h1:ANnDn3PEi9jnFapBr9d8ohXBzAMGDCDgn6cANWk9Soo= github.com/integration-system/isp-lib/v2 v2.3.1/go.mod h1:eRSmS3+S8WXTUKu7YtSimFJDrLF+/esM/989NBEsP2o= github.com/integration-system/isp-lib/v2 v2.4.0 h1:oP7hIY75zLa+IBGzp58A4vMRu1HaD1nckooMmm6DE0Y= github.com/integration-system/isp-lib/v2 v2.4.0/go.mod h1:hxyzKBD7eIf6Hm4x6zRsLW5p8m/aFeqeezKMFYBAtho= +github.com/integration-system/isp-lib/v2 v2.5.0 h1:Y9+x4vf+OTzmuFocGiTgl/V+dhNW3DD5GU5EQKWnweA= +github.com/integration-system/isp-lib/v2 v2.5.0/go.mod h1:slmiYHBnJllvd+zXay+HERPzb/HVakkVf+IIRCod1UA= github.com/integration-system/isp-log v1.1.2 h1:bnWxPjDOC1Y/tEzFxa42aG+xaPRWizuJADAwXgp2i5U= github.com/integration-system/isp-log v1.1.2/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs= github.com/integration-system/isp-log v1.1.3 h1:+oLEF5fxaDUUQI4x44FGifEEFAR2ZvXusYGTD7m+87Y= @@ -455,6 +459,8 @@ google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898 h1:bKX1IGaSj2XD9yf google.golang.org/genproto v0.0.0-20200211111953-2dc5924e3898/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200409111301-baae70f3302d h1:I7Vuu5Ejagca+VcgfBINHke3xwjCTYnIG4Q57fv0wYY= google.golang.org/genproto v0.0.0-20200409111301-baae70f3302d/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36 h1:j7CmVRD4Kec0+f8VuBAc2Ak2MFfXm5Q2/RxuJLL+76E= +google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= diff --git a/main.go b/main.go index c7c0464..243debe 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,8 @@ func main() { DeclareMe(makeDeclaration). SocketConfiguration(socketConfiguration). RequireRoutes(handleRouteUpdate). - RequireModule("journal", invoker.Journal.ReceiveServiceAddressList, false) + RequireModule("journal", invoker.Journal.ReceiveServiceAddressList, false). + SubscribeBroadcastEvent(bootstrap.ListenRestartEvent()) requiredModules, err := proxy.InitProxies(cfg.Locations) if err != nil { diff --git a/proxy/grpc/handlers/common.go b/proxy/grpc/handlers/common.go index 1384185..85c29d0 100644 --- a/proxy/grpc/handlers/common.go +++ b/proxy/grpc/handlers/common.go @@ -11,7 +11,7 @@ import ( "github.com/integration-system/isp-lib/v2/backend" "github.com/integration-system/isp-lib/v2/config" http2 "github.com/integration-system/isp-lib/v2/http" - isp "github.com/integration-system/isp-lib/v2/proto/stubs" + "github.com/integration-system/isp-lib/v2/isp" "github.com/integration-system/isp-lib/v2/structure" "github.com/integration-system/isp-lib/v2/utils" log "github.com/integration-system/isp-log" diff --git a/proxy/grpc/handlers/handle_get_file.go b/proxy/grpc/handlers/handle_get_file.go index 0a14759..3af8bb3 100644 --- a/proxy/grpc/handlers/handle_get_file.go +++ b/proxy/grpc/handlers/handle_get_file.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/integration-system/isp-lib/v2/backend" "github.com/integration-system/isp-lib/v2/config" - isp "github.com/integration-system/isp-lib/v2/proto/stubs" + "github.com/integration-system/isp-lib/v2/isp" s "github.com/integration-system/isp-lib/v2/streaming" u "github.com/integration-system/isp-lib/v2/utils" log "github.com/integration-system/isp-log" diff --git a/proxy/grpc/handlers/handle_json.go b/proxy/grpc/handlers/handle_json.go index 9827666..3508350 100644 --- a/proxy/grpc/handlers/handle_json.go +++ b/proxy/grpc/handlers/handle_json.go @@ -3,7 +3,7 @@ package handlers import ( "github.com/integration-system/isp-lib/v2/backend" "github.com/integration-system/isp-lib/v2/config" - isp "github.com/integration-system/isp-lib/v2/proto/stubs" + "github.com/integration-system/isp-lib/v2/isp" "github.com/valyala/fasthttp" "golang.org/x/net/context" "google.golang.org/grpc/codes" diff --git a/proxy/grpc/handlers/handle_send_multipart_data.go b/proxy/grpc/handlers/handle_send_multipart_data.go index 4b94585..fad7a18 100644 --- a/proxy/grpc/handlers/handle_send_multipart_data.go +++ b/proxy/grpc/handlers/handle_send_multipart_data.go @@ -3,7 +3,7 @@ package handlers import ( "github.com/integration-system/isp-lib/v2/backend" "github.com/integration-system/isp-lib/v2/config" - isp "github.com/integration-system/isp-lib/v2/proto/stubs" + "github.com/integration-system/isp-lib/v2/isp" s "github.com/integration-system/isp-lib/v2/streaming" "github.com/valyala/fasthttp" "google.golang.org/grpc/codes"