Skip to main content

Turbine Go: ResourceConfigs renamed to ConnectionOptions

· One min read
Haris Osmanagić
Engineering
warning

This is a legacy platform changelog. The information reflected here may not represent current functionality and some links may be broken.

The ResourceConfigs used to provide additional options when reading records from/writing to a resource has been renamed to ConnectionOptions.

ResourceConfigs is still available as an alias, so that existing code continues to work. In a future release, ResourceConfigs will be completely removed, so we suggest that you update your code to use ConnectionOptions.

For example, the following code:

rr, err := db.Records(
"user_activity",
turbine.ResourceConfigs{
turbine.ResourceConfig{Field: "cdc", Value: "true"},
},
)

will become:

rr, err := db.Records(
"user_activity",
turbine.ConnectionOptions{
turbine.ConnectionOption{Field: "cdc", Value: "true"},
},
)