Skip to content

Commit

Permalink
use config.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed May 28, 2024
1 parent 4ae468b commit 9f3a673
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions cplugin/destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package cplugin
import (
"context"

"github.com/conduitio/conduit-commons/config"
"github.com/conduitio/conduit-commons/opencdc"
)

Expand Down Expand Up @@ -56,7 +57,7 @@ type DestinationRunStreamServer interface {
}

type DestinationConfigureRequest struct {
Config map[string]string
Config config.Config
}
type DestinationConfigureResponse struct{}

Expand Down Expand Up @@ -84,17 +85,17 @@ type DestinationTeardownRequest struct{}
type DestinationTeardownResponse struct{}

type DestinationLifecycleOnCreatedRequest struct {
Config map[string]string
Config config.Config
}
type DestinationLifecycleOnCreatedResponse struct{}

type DestinationLifecycleOnUpdatedRequest struct {
ConfigBefore map[string]string
ConfigAfter map[string]string
ConfigBefore config.Config
ConfigAfter config.Config
}
type DestinationLifecycleOnUpdatedResponse struct{}

type DestinationLifecycleOnDeletedRequest struct {
Config map[string]string
Config config.Config
}
type DestinationLifecycleOnDeletedResponse struct{}
11 changes: 6 additions & 5 deletions cplugin/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package cplugin
import (
"context"

"github.com/conduitio/conduit-commons/config"
"github.com/conduitio/conduit-commons/opencdc"
)

Expand Down Expand Up @@ -56,7 +57,7 @@ type SourceRunStreamServer interface {
}

type SourceConfigureRequest struct {
Config map[string]string
Config config.Config
}
type SourceConfigureResponse struct{}

Expand All @@ -81,17 +82,17 @@ type SourceTeardownRequest struct{}
type SourceTeardownResponse struct{}

type SourceLifecycleOnCreatedRequest struct {
Config map[string]string
Config config.Config
}
type SourceLifecycleOnCreatedResponse struct{}

type SourceLifecycleOnUpdatedRequest struct {
ConfigBefore map[string]string
ConfigAfter map[string]string
ConfigBefore config.Config
ConfigAfter config.Config
}
type SourceLifecycleOnUpdatedResponse struct{}

type SourceLifecycleOnDeletedRequest struct {
Config map[string]string
Config config.Config
}
type SourceLifecycleOnDeletedResponse struct{}

0 comments on commit 9f3a673

Please sign in to comment.