Skip to content

Commit

Permalink
stylecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Dec 27, 2024
1 parent 1a8b07d commit 6a90e61
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 30 deletions.
14 changes: 7 additions & 7 deletions services/property-svc/cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import (
hwspicedb "hwauthz/spicedb"
propertySet "property-svc/internal/property-set/api"
psh "property-svc/internal/property-set/handlers"
propertySetSpiceDBProjection "property-svc/internal/property-set/projections/spiceDBProjection"
propertySetSpiceDBProjection "property-svc/internal/property-set/projections/spicedb-projection"
propertyValue "property-svc/internal/property-value/api"
pvh "property-svc/internal/property-value/handlers"
"property-svc/internal/property-value/projections/property_value_postgres_projection"
propertyValuePostgresProjection "property-svc/internal/property-value/projections/postgres-projection"
propertyViews "property-svc/internal/property-view/api"
pvih "property-svc/internal/property-view/handlers"
"property-svc/internal/property-view/projections/property_rules_postgres"
propertyRulesPostgresProjection "property-svc/internal/property-view/projections/postgres-projection"
property "property-svc/internal/property/api"
ph "property-svc/internal/property/handlers"
propertyPostgresProjection "property-svc/internal/property/projections/postgres_projection"
propertySpiceDBProjection "property-svc/internal/property/projections/spiceDBProjection"
propertyPostgresProjection "property-svc/internal/property/projections/postgres-projection"
propertySpiceDBProjection "property-svc/internal/property/projections/spicedb-projection"
)

const ServiceName = "property-svc"
Expand Down Expand Up @@ -57,8 +57,8 @@ func Main(version string, ready func()) {
propertySpiceDBProjection.NewProjection(eventStore, ServiceName, authz),
propertySetSpiceDBProjection.NewProjection(eventStore, ServiceName, authz),
propertyPostgresProjection.NewProjection(eventStore, ServiceName, hwdb.GetDB()),
property_value_postgres_projection.NewProjection(eventStore, ServiceName, hwdb.GetDB()),
property_rules_postgres.NewProjection(eventStore, ServiceName),
propertyValuePostgresProjection.NewProjection(eventStore, ServiceName, hwdb.GetDB()),
propertyRulesPostgresProjection.NewProjection(eventStore, ServiceName),
)

propertyHandlers := ph.NewPropertyHandlers(aggregateStore, authz)
Expand Down
8 changes: 4 additions & 4 deletions services/property-svc/cmd/service/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/EventStore/EventStore-Client-Go/v4/esdb"

propertyValueAggregate "property-svc/internal/property-value/aggregate"
"property-svc/internal/property-value/projections/property_value_postgres_projection"
propertyValuePostgresProjection "property-svc/internal/property-value/projections/postgres-projection"
propertyAggregate "property-svc/internal/property/aggregate"
"property-svc/internal/property/projections/postgres_projection"
propertyPostgresProjection "property-svc/internal/property/projections/postgres-projection"
)

// replay mechanism for projections of the property-svc
Expand All @@ -39,8 +39,8 @@ func replay(ctx context.Context, eventStore *esdb.Client) error {

log.Info().Msg("starting event replay")

propertyPostgresProjection := postgres_projection.NewProjection(eventStore, ServiceName, tx)
propertyValuePostgresProjection := property_value_postgres_projection.NewProjection(eventStore, ServiceName, tx)
propertyPostgresProjection := propertyPostgresProjection.NewProjection(eventStore, ServiceName, tx)
propertyValuePostgresProjection := propertyValuePostgresProjection.NewProjection(eventStore, ServiceName, tx)

err = eventstoredb.Replay(
ctx,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package spiceDBProjection
package spicedbprojection

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package property_value_postgres_projection
package postgresprojection

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package property_rules_postgres
package postgresprojection

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package property_rules_postgres
package postgresprojection

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package postgres_projection
package postgresprojection

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package spiceDBProjection
package spicedbprojection

import (
"context"
Expand Down
15 changes: 7 additions & 8 deletions services/tasks-svc/cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ import (
"hwes/eventstoredb/projections"
"time"

"tasks-svc/internal/patient/projections/patientSpiceDBProjection"

ph "tasks-svc/internal/patient/handlers"
"tasks-svc/internal/patient/projections/patientPostgresProjection"
patientPostgresProjection "tasks-svc/internal/patient/projections/postgres-projection"
patientSpiceDBProjection "tasks-svc/internal/patient/projections/spicedb-projection"
th "tasks-svc/internal/task/handlers"
"tasks-svc/internal/task/projections/task_postgres_projection"
"tasks-svc/internal/task/projections/task_spicedb"
taskPostgresProjection "tasks-svc/internal/task/projections/postgres-projection"
taskSpiceDBProjection "tasks-svc/internal/task/projections/spicedb-projection"
"tasks-svc/internal/tracking"

daprd "github.com/dapr/go-sdk/service/grpc"
Expand Down Expand Up @@ -49,8 +48,8 @@ func Main(version string, ready func()) {
go projections.StartProjections(
ctx,
common.Shutdown,
task_spicedb.NewSpiceDBProjection(eventStore, authz, ServiceName),
task_postgres_projection.NewProjection(eventStore, ServiceName),
taskSpiceDBProjection.NewSpiceDBProjection(eventStore, authz, ServiceName),
taskPostgresProjection.NewProjection(eventStore, ServiceName),
patientPostgresProjection.NewProjection(eventStore, ServiceName),
patientSpiceDBProjection.NewProjection(eventStore, authz, ServiceName),
)
Expand All @@ -63,7 +62,7 @@ func Main(version string, ready func()) {
pb.RegisterBedServiceServer(grpcServer, bed.NewServiceServer(authz, eventStore))
pb.RegisterRoomServiceServer(grpcServer, room.NewServiceServer(authz, eventStore))
pb.RegisterWardServiceServer(grpcServer, ward.NewServiceServer(authz, eventStore))
pb.RegisterTaskTemplateServiceServer(grpcServer, task_template.NewServiceServer(authz, eventStore))
pb.RegisterTaskTemplateServiceServer(grpcServer, tasktemplate.NewServiceServer(authz, eventStore))

if ready != nil {
ready()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package patientPostgresProjection
package postgresprojection

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package patientSpiceDBProjection
package spicedbprojection

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion services/tasks-svc/internal/task-template/task_template.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package task_template
package tasktemplate

import (
"common"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package task_postgres_projection
package postgresprojection

import (
"common/hwerr"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package task_spicedb
package spicedbprojection

import (
"context"
Expand Down

0 comments on commit 6a90e61

Please sign in to comment.