From f8b3f4606019da380a4cb40452867b7880d27150 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 18 Aug 2020 10:07:28 +0300 Subject: [PATCH] Change module name --- command/v1/message.pb.go | 10 +++---- common/v1/message.pb.go | 4 +-- failure/v1/message.pb.go | 4 +-- filter/v1/message.pb.go | 4 +-- go.mod | 4 ++- history/v1/message.pb.go | 12 ++++----- namespace/v1/message.pb.go | 4 +-- query/v1/message.pb.go | 4 +-- serviceerror/cancellationAlreadyRequested.go | 2 +- serviceerror/clientVersionNotSupported.go | 2 +- serviceerror/convert.go | 2 +- serviceerror/featureVersionNotSupported.go | 2 +- serviceerror/namespaceAlreadyExists.go | 2 +- serviceerror/namespaceNotActive.go | 2 +- serviceerror/notFound.go | 2 +- serviceerror/queryFailed.go | 2 +- .../workflowExecutionAlreadyStarted.go | 2 +- taskqueue/v1/message.pb.go | 4 +-- workflow/v1/message.pb.go | 10 +++---- workflowservice/v1/request_response.pb.go | 26 +++++++++---------- workflowservicemock/v1/service.pb.mock.go | 2 +- 21 files changed, 54 insertions(+), 52 deletions(-) diff --git a/command/v1/message.pb.go b/command/v1/message.pb.go index 6c435db4..53f0cbf5 100644 --- a/command/v1/message.pb.go +++ b/command/v1/message.pb.go @@ -31,11 +31,11 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - v1 "go.temporal.io/api/common/v1" - _ "go.temporal.io/api/dependencies/gogoproto" - v13 "go.temporal.io/api/enums/v1" - v12 "go.temporal.io/api/failure/v1" - v11 "go.temporal.io/api/taskqueue/v1" + v1 "github.com/spiral/go-api/common/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v13 "github.com/spiral/go-api/enums/v1" + v12 "github.com/spiral/go-api/failure/v1" + v11 "github.com/spiral/go-api/taskqueue/v1" io "io" math "math" math_bits "math/bits" diff --git a/common/v1/message.pb.go b/common/v1/message.pb.go index f0038ac9..16b6333b 100644 --- a/common/v1/message.pb.go +++ b/common/v1/message.pb.go @@ -33,8 +33,8 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "go.temporal.io/api/dependencies/gogoproto" - v1 "go.temporal.io/api/enums/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v1 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/failure/v1/message.pb.go b/failure/v1/message.pb.go index 989f8fda..5f873301 100644 --- a/failure/v1/message.pb.go +++ b/failure/v1/message.pb.go @@ -28,8 +28,8 @@ package failure import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" - v1 "go.temporal.io/api/common/v1" - v11 "go.temporal.io/api/enums/v1" + v1 "github.com/spiral/go-api/common/v1" + v11 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/filter/v1/message.pb.go b/filter/v1/message.pb.go index e6526725..e8e62751 100644 --- a/filter/v1/message.pb.go +++ b/filter/v1/message.pb.go @@ -30,8 +30,8 @@ import ( proto "github.com/gogo/protobuf/proto" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "go.temporal.io/api/dependencies/gogoproto" - v1 "go.temporal.io/api/enums/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v1 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/go.mod b/go.mod index 6f6a67a9..023351a5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.temporal.io/api +module github.com/spiral/go-api go 1.13 @@ -15,3 +15,5 @@ require ( google.golang.org/grpc v1.31.0 google.golang.org/protobuf v1.25.0 // indirect ) + +//go.temporal.io/api diff --git a/history/v1/message.pb.go b/history/v1/message.pb.go index 37b47b4f..3c3605a4 100644 --- a/history/v1/message.pb.go +++ b/history/v1/message.pb.go @@ -31,12 +31,12 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - v1 "go.temporal.io/api/common/v1" - _ "go.temporal.io/api/dependencies/gogoproto" - v12 "go.temporal.io/api/enums/v1" - v13 "go.temporal.io/api/failure/v1" - v11 "go.temporal.io/api/taskqueue/v1" - v14 "go.temporal.io/api/workflow/v1" + v1 "github.com/spiral/go-api/common/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v12 "github.com/spiral/go-api/enums/v1" + v13 "github.com/spiral/go-api/failure/v1" + v11 "github.com/spiral/go-api/taskqueue/v1" + v14 "github.com/spiral/go-api/workflow/v1" io "io" math "math" math_bits "math/bits" diff --git a/namespace/v1/message.pb.go b/namespace/v1/message.pb.go index 8c50b753..0eb161a0 100644 --- a/namespace/v1/message.pb.go +++ b/namespace/v1/message.pb.go @@ -31,8 +31,8 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "go.temporal.io/api/dependencies/gogoproto" - v1 "go.temporal.io/api/enums/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v1 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/query/v1/message.pb.go b/query/v1/message.pb.go index b20a378d..3e5d23af 100644 --- a/query/v1/message.pb.go +++ b/query/v1/message.pb.go @@ -28,8 +28,8 @@ package query import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" - v1 "go.temporal.io/api/common/v1" - v11 "go.temporal.io/api/enums/v1" + v1 "github.com/spiral/go-api/common/v1" + v11 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/serviceerror/cancellationAlreadyRequested.go b/serviceerror/cancellationAlreadyRequested.go index 6373a498..5449d50c 100644 --- a/serviceerror/cancellationAlreadyRequested.go +++ b/serviceerror/cancellationAlreadyRequested.go @@ -26,7 +26,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/clientVersionNotSupported.go b/serviceerror/clientVersionNotSupported.go index ab32ff1c..2a8b094c 100644 --- a/serviceerror/clientVersionNotSupported.go +++ b/serviceerror/clientVersionNotSupported.go @@ -28,7 +28,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/convert.go b/serviceerror/convert.go index 5ce1d985..7bc10739 100644 --- a/serviceerror/convert.go +++ b/serviceerror/convert.go @@ -29,7 +29,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) // ToStatus converts service error to gogo gRPC status. // If error is not a service error it returns status with code Unknown. diff --git a/serviceerror/featureVersionNotSupported.go b/serviceerror/featureVersionNotSupported.go index 85384815..faec7c9c 100644 --- a/serviceerror/featureVersionNotSupported.go +++ b/serviceerror/featureVersionNotSupported.go @@ -28,7 +28,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/namespaceAlreadyExists.go b/serviceerror/namespaceAlreadyExists.go index ab77f705..4bb1e9f2 100644 --- a/serviceerror/namespaceAlreadyExists.go +++ b/serviceerror/namespaceAlreadyExists.go @@ -26,7 +26,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/namespaceNotActive.go b/serviceerror/namespaceNotActive.go index 8388e0b7..d2338966 100644 --- a/serviceerror/namespaceNotActive.go +++ b/serviceerror/namespaceNotActive.go @@ -28,7 +28,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/notFound.go b/serviceerror/notFound.go index 337e4c27..28e56422 100644 --- a/serviceerror/notFound.go +++ b/serviceerror/notFound.go @@ -26,7 +26,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/queryFailed.go b/serviceerror/queryFailed.go index 17a3167c..7bd393d5 100644 --- a/serviceerror/queryFailed.go +++ b/serviceerror/queryFailed.go @@ -26,7 +26,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/serviceerror/workflowExecutionAlreadyStarted.go b/serviceerror/workflowExecutionAlreadyStarted.go index 111f84e5..038b48a9 100644 --- a/serviceerror/workflowExecutionAlreadyStarted.go +++ b/serviceerror/workflowExecutionAlreadyStarted.go @@ -26,7 +26,7 @@ import ( "github.com/gogo/status" "google.golang.org/grpc/codes" - "go.temporal.io/api/errordetails/v1" + "github.com/spiral/go-api/errordetails/v1" ) type ( diff --git a/taskqueue/v1/message.pb.go b/taskqueue/v1/message.pb.go index c6f29c07..43f52164 100644 --- a/taskqueue/v1/message.pb.go +++ b/taskqueue/v1/message.pb.go @@ -31,8 +31,8 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" types "github.com/gogo/protobuf/types" - _ "go.temporal.io/api/dependencies/gogoproto" - v1 "go.temporal.io/api/enums/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v1 "github.com/spiral/go-api/enums/v1" io "io" math "math" math_bits "math/bits" diff --git a/workflow/v1/message.pb.go b/workflow/v1/message.pb.go index 60691be2..a90691c0 100644 --- a/workflow/v1/message.pb.go +++ b/workflow/v1/message.pb.go @@ -30,11 +30,11 @@ import ( proto "github.com/gogo/protobuf/proto" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - v1 "go.temporal.io/api/common/v1" - _ "go.temporal.io/api/dependencies/gogoproto" - v11 "go.temporal.io/api/enums/v1" - v13 "go.temporal.io/api/failure/v1" - v12 "go.temporal.io/api/taskqueue/v1" + v1 "github.com/spiral/go-api/common/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v11 "github.com/spiral/go-api/enums/v1" + v13 "github.com/spiral/go-api/failure/v1" + v12 "github.com/spiral/go-api/taskqueue/v1" io "io" math "math" math_bits "math/bits" diff --git a/workflowservice/v1/request_response.pb.go b/workflowservice/v1/request_response.pb.go index 4b457e3f..e6912733 100644 --- a/workflowservice/v1/request_response.pb.go +++ b/workflowservice/v1/request_response.pb.go @@ -32,19 +32,19 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - v17 "go.temporal.io/api/command/v1" - v13 "go.temporal.io/api/common/v1" - _ "go.temporal.io/api/dependencies/gogoproto" - v11 "go.temporal.io/api/enums/v1" - v18 "go.temporal.io/api/failure/v1" - v19 "go.temporal.io/api/filter/v1" - v15 "go.temporal.io/api/history/v1" - v12 "go.temporal.io/api/namespace/v1" - v16 "go.temporal.io/api/query/v1" - v1 "go.temporal.io/api/replication/v1" - v14 "go.temporal.io/api/taskqueue/v1" - v111 "go.temporal.io/api/version/v1" - v110 "go.temporal.io/api/workflow/v1" + v17 "github.com/spiral/go-api/command/v1" + v13 "github.com/spiral/go-api/common/v1" + _ "github.com/spiral/go-api/dependencies/gogoproto" + v11 "github.com/spiral/go-api/enums/v1" + v18 "github.com/spiral/go-api/failure/v1" + v19 "github.com/spiral/go-api/filter/v1" + v15 "github.com/spiral/go-api/history/v1" + v12 "github.com/spiral/go-api/namespace/v1" + v16 "github.com/spiral/go-api/query/v1" + v1 "github.com/spiral/go-api/replication/v1" + v14 "github.com/spiral/go-api/taskqueue/v1" + v111 "github.com/spiral/go-api/version/v1" + v110 "github.com/spiral/go-api/workflow/v1" io "io" math "math" math_bits "math/bits" diff --git a/workflowservicemock/v1/service.pb.mock.go b/workflowservicemock/v1/service.pb.mock.go index 83221500..a977b3ea 100644 --- a/workflowservicemock/v1/service.pb.mock.go +++ b/workflowservicemock/v1/service.pb.mock.go @@ -31,7 +31,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - workflowservice "go.temporal.io/api/workflowservice/v1" + workflowservice "github.com/spiral/go-api/workflowservice/v1" grpc "google.golang.org/grpc" )