This SDK supports both cloud bucketing (requests outbound to https://bucketing-api.devcycle.com) as well as local bucketing (requests to a local bucketing engine self-contained in this SDK).
go get "github.com/devcyclehq/go-server-sdk/v2"
package main
import "github.com/devcyclehq/go-server-sdk/v2"
sdkKey := os.Getenv("DVC_SERVER_KEY")
user := devcycle.DVCUser{UserId: "test"}
dvcOptions := devcycle.DVCOptions{
EnableEdgeDB: false,
EnableCloudBucketing: false,
EventFlushIntervalMS: 0,
ConfigPollingIntervalMS: 10 * time.Second,
RequestTimeout: 10 * time.Second,
DisableAutomaticEventLogging: false,
DisableCustomEventLogging: false,
}
client, _ := devcycle.NewDVCClient(sdkKey, &dvcOptions)
To find usage documentation, visit our docs.
This SDK is supported by our test harness, a test suite shared between all DevCycle SDKs for consistency.