Skip to content

Commit

Permalink
feat: Add PluginKind "transformer". (#1828)
Browse files Browse the repository at this point in the history
Add PluginKind's "transformer", which is necessary to enable the transformation's work.
  • Loading branch information
marianogappa committed Jul 30, 2024
1 parent 57a606f commit 2c78878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/plugin_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ type Kind string
const (
KindSource Kind = "source"
KindDestination Kind = "destination"
KindTransformer Kind = "transformer"
)

func (k Kind) Validate() error {
switch k {
case KindSource, KindDestination:
case KindSource, KindDestination, KindTransformer:
return nil
default:
return errors.New("invalid plugin kind: must be one of source, destination")
Expand Down

1 comment on commit 2c78878

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱️ Benchmark results

  • Glob-8 ns/op: 92.28

Please sign in to comment.