Skip to content

Commit

Permalink
feat(fxgcppubsub): Added schemas support
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Jun 7, 2024
1 parent 3912f1d commit a4368e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
14 changes: 0 additions & 14 deletions fxgcppubsub/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

"cloud.google.com/go/pubsub"
"cloud.google.com/go/pubsub/pstest"
"github.com/ankorstore/yokai-contrib/fxgcppubsub/schema"
"github.com/ankorstore/yokai/config"
"go.uber.org/fx"
"google.golang.org/api/option"
Expand All @@ -25,7 +24,6 @@ var FxGcpPubSubModule = fx.Module(
fx.Provide(
NewFxGcpPubSubClient,
NewFxGcpPubSubSchemaClient,
NewFxGcpPubSubSchemaRegistry,
),
)

Expand Down Expand Up @@ -104,15 +102,3 @@ func NewFxGcpPubSubSchemaClient(p FxGcpPubSubSchemaClientParam) (*pubsub.SchemaC
return pubsub.NewSchemaClient(p.Context, p.Config.GetString("modules.gcppubsub.project.id"))

}

// FxGcpPubSubSchemaRegistryParam allows injection of the required dependencies in [NewFxGcpPubSubSchemaRegistry].
type FxGcpPubSubSchemaRegistryParam struct {
fx.In
Client *pubsub.SchemaClient
}

// NewFxGcpPubSubSchemaRegistry returns a [schema.SchemaRegistry].
func NewFxGcpPubSubSchemaRegistry(p FxGcpPubSubSchemaRegistryParam) *schema.SchemaRegistry {
return schema.NewSchemaRegistry(p.Client)

}
41 changes: 0 additions & 41 deletions fxgcppubsub/schema/registry.go

This file was deleted.

0 comments on commit a4368e5

Please sign in to comment.