Skip to content

Commit

Permalink
Add example config for docs, and add to docs test
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Apr 11, 2024
1 parent cd1b65c commit f5b6604
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
transform {
use "spGtmssPreview" {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
transform {
use "spGtmssPreview" {
}
}
2 changes: 2 additions & 0 deletions docs/configuration_transformations_docs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ func testTransformationConfig(t *testing.T, filepath string, fullExample bool) {
configObject = &transform.Base64DecodeConfig{}
case "base64Encode":
configObject = &transform.Base64EncodeConfig{}
case "spGtmssPreview":
configObject = &transform.GTMSSPreviewConfig{}
case "js":
configObject = &engine.JSEngineConfig{}
case "lua":
Expand Down
4 changes: 4 additions & 0 deletions pkg/transform/snowplow_gtmss_preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import (
"github.com/snowplow/snowplow-golang-analytics-sdk/analytics"
)

// GTMSSPreviewConfig is a configuration object for the spEnrichedToJson transformation
type GTMSSPreviewConfig struct {
}

// The gtmssPreviewAdapter implements the Pluggable interface
type gtmssPreviewAdapter func(i interface{}) (interface{}, error)

Expand Down

0 comments on commit f5b6604

Please sign in to comment.