Skip to content

Commit

Permalink
rename common to interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebotarev committed Jan 9, 2025
1 parent 529f3a1 commit f783591
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ import (
"go.temporal.io/server/common/testing/updateutils"
"go.temporal.io/server/internal/effect"
"go.temporal.io/server/service/history/api"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.temporal.io/server/service/history/workflow"
Expand Down
2 changes: 1 addition & 1 deletion service/history/history_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ import (
"go.temporal.io/server/service/history/api/verifychildworkflowcompletionrecorded"
"go.temporal.io/server/service/history/api/verifyfirstworkflowtaskscheduled"
"go.temporal.io/server/service/history/circuitbreakerpool"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/consts"
"go.temporal.io/server/service/history/deletemanager"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/ndc"
"go.temporal.io/server/service/history/queues"
"go.temporal.io/server/service/history/replication"
Expand Down
2 changes: 1 addition & 1 deletion service/history/history_engine_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import (
"go.temporal.io/server/common/sdk"
"go.temporal.io/server/service/history/api"
"go.temporal.io/server/service/history/circuitbreakerpool"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/events"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/replication"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination engine_mock.go

package common
package interfaces

import (
"context"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

package common
package interfaces

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion service/history/ndc/history_replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
"go.temporal.io/server/common/persistence/versionhistory"
"go.temporal.io/server/common/primitives/timestamp"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/workflow"
wcache "go.temporal.io/server/service/history/workflow/cache"
Expand Down
2 changes: 1 addition & 1 deletion service/history/ndc/hsm_state_replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import (
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/persistence/versionhistory"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/workflow"
wcache "go.temporal.io/server/service/history/workflow/cache"
Expand Down
2 changes: 1 addition & 1 deletion service/history/ndc/hsm_state_replicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/hsm"
"go.temporal.io/server/service/history/hsm/hsmtest"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/tests"
Expand Down
2 changes: 1 addition & 1 deletion service/history/ndc/workflow_state_replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ import (
"go.temporal.io/server/common/persistence/versionhistory"
"go.temporal.io/server/common/primitives/timestamp"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/consts"
"go.temporal.io/server/service/history/historybuilder"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/workflow"
wcache "go.temporal.io/server/service/history/workflow/cache"
Expand Down
2 changes: 1 addition & 1 deletion service/history/ndc/workflow_state_replicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ import (
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/persistence/versionhistory"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.temporal.io/server/service/history/workflow"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/eventhandler/event_importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/persistence/versionhistory"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
"go.temporal.io/server/common/log"
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence/serialization"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.uber.org/mock/gomock"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import (
"go.temporal.io/server/common/definition"
"go.temporal.io/server/common/log"
"go.temporal.io/server/common/namespace"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.uber.org/mock/gomock"
)
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/eventhandler/resend_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/persistence/versionhistory"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
)

type (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/primitives/timestamp"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import (
"go.temporal.io/server/common/persistence"
serviceerrors "go.temporal.io/server/common/serviceerror"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
"go.temporal.io/server/common/persistence/versionhistory"
serviceerrors "go.temporal.io/server/common/serviceerror"
ctasks "go.temporal.io/server/common/tasks"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
)

type (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ import (
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/persistence/serialization"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import (
serviceerrors "go.temporal.io/server/common/serviceerror"
"go.temporal.io/server/common/testing/protorequire"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/executable_sync_hsm_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"go.temporal.io/server/common/namespace"
serviceerrors "go.temporal.io/server/common/serviceerror"
ctasks "go.temporal.io/server/common/tasks"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import (
"go.temporal.io/server/common/persistence"
serviceerrors "go.temporal.io/server/common/serviceerror"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/executable_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import (
"go.temporal.io/server/common/persistence/versionhistory"
serviceerrors "go.temporal.io/server/common/serviceerror"
ctasks "go.temporal.io/server/common/tasks"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tasks"
)

Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/executable_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ import (
ctasks "go.temporal.io/server/common/tasks"
"go.temporal.io/server/common/testing/protomock"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/consts"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/replication/eventhandler"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import (
"go.temporal.io/server/common/persistence"
serviceerrors "go.temporal.io/server/common/serviceerror"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import (
"go.temporal.io/server/common/persistence/serialization"
ctasks "go.temporal.io/server/common/tasks"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/queues"
"go.temporal.io/server/service/history/replication/eventhandler"
"go.temporal.io/server/service/history/shard"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/raw_task_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import (
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/persistence/versionhistory"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/workflow"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/raw_task_converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ import (
"go.temporal.io/server/common/payloads"
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/testing/protorequire"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/hsm"
"go.temporal.io/server/service/history/hsm/hsmtest"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/tests"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import (
"go.temporal.io/server/common/dynamicconfig"
"go.temporal.io/server/common/log"
"go.temporal.io/server/common/metrics"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/stream_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import (
"go.temporal.io/server/common/metrics"
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/primitives/timestamp"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"google.golang.org/protobuf/types/known/timestamppb"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/stream_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/tests"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/task_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ import (
"go.temporal.io/server/common/primitives/timestamp"
"go.temporal.io/server/common/quotas"
serviceerrors "go.temporal.io/server/common/serviceerror"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"google.golang.org/protobuf/types/known/timestamppb"
)
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/task_processor_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ import (
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/xdc"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/deletemanager"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
wcache "go.temporal.io/server/service/history/workflow/cache"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/task_processor_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/persistence/serialization"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/tests"
Expand Down
2 changes: 1 addition & 1 deletion service/history/replication/task_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ import (
"go.temporal.io/server/common/quotas"
"go.temporal.io/server/common/resourcetest"
"go.temporal.io/server/common/testing/protorequire"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/shard"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/shard/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ import (
"go.temporal.io/server/common/persistence/serialization"
"go.temporal.io/server/common/pingable"
"go.temporal.io/server/common/searchattribute"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tasks"
)

Expand Down
2 changes: 1 addition & 1 deletion service/history/shard/context_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ import (
"go.temporal.io/server/common/rpc"
"go.temporal.io/server/common/searchattribute"
"go.temporal.io/server/common/util"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/consts"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/vclock"
"google.golang.org/protobuf/types/known/timestamppb"
Expand Down
2 changes: 1 addition & 1 deletion service/history/shard/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
"go.temporal.io/server/common/namespace"
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/primitives/timestamp"
history "go.temporal.io/server/service/history/common"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tasks"
"go.temporal.io/server/service/history/tests"
"go.uber.org/mock/gomock"
Expand Down
2 changes: 1 addition & 1 deletion service/history/shard/context_testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ import (
"go.temporal.io/server/common/persistence"
"go.temporal.io/server/common/primitives"
"go.temporal.io/server/common/resourcetest"
history "go.temporal.io/server/service/history/common"
"go.temporal.io/server/service/history/configs"
"go.temporal.io/server/service/history/events"
"go.temporal.io/server/service/history/hsm"
history "go.temporal.io/server/service/history/interfaces"
"go.temporal.io/server/service/history/tasks"
"go.uber.org/mock/gomock"
)
Expand Down
Loading

0 comments on commit f783591

Please sign in to comment.