Skip to content

Commit

Permalink
fix: DVC-8025 rename DVC references to DevCycle (#222)
Browse files Browse the repository at this point in the history
fix: rename public refrences to DVC to DevCycle
  • Loading branch information
jonathannorris authored Jul 27, 2023
1 parent faf8d55 commit b2064fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import "github.com/devcyclehq/go-server-sdk/v2"
## Getting Started

```golang
sdkKey := os.Getenv("DVC_SERVER_KEY")
sdkKey := os.Getenv("DEVCYCLE_SERVER_SDK_KEY")
user := devcycle.User{UserId: "test"}

options := devcycle.Options{
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func createNullableCustomData(data map[string]interface{}) *proto.NullableCustom
}

/*
DVCClientService Get all features by key for user data
Get all features by key for user data
- @param body
@return map[string]Feature
Expand Down Expand Up @@ -454,7 +454,7 @@ func (c *Client) AllVariables(user User) (map[string]ReadOnlyVariable, error) {
}

/*
DVCClientService Post events to DevCycle for user
Post events to DevCycle for user
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ func TestClient_TrackLocal_QueueEventBeforeConfig(t *testing.T) {
}

func TestProduction_Local(t *testing.T) {
environmentKey := os.Getenv("DVC_SERVER_KEY")
environmentKey := os.Getenv("DEVCYCLE_SERVER_SDK_KEY")
user := User{UserId: "test"}
if environmentKey == "" {
t.Skip("DVC_SERVER_KEY not set. Not using production tests.")
t.Skip("DEVCYCLE_SERVER_SDK_KEY not set. Not using production tests.")
}
dvcOptions := Options{
EnableEdgeDB: false,
Expand Down
8 changes: 4 additions & 4 deletions example/cloud/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
)

func main() {
sdkKey := os.Getenv("DVC_SERVER_SDK_KEY")
sdkKey := os.Getenv("DEVCYCLE_SERVER_SDK_KEY")
if sdkKey == "" {
log.Fatal("DVC_SERVER_SDK_KEY env var not set: set it to your SDK key")
log.Fatal("DEVCYCLE_SERVER_SDK_KEY env var not set: set it to your SDK key")
}
variableKey := os.Getenv("DVC_VARIABLE_KEY")
variableKey := os.Getenv("DEVCYCLE_VARIABLE_KEY")
if variableKey == "" {
log.Fatal("DVC_VARIABLE env var not set: set it to a variable key")
log.Fatal("DEVCYCLE_VARIABLE_KEY env var not set: set it to a variable key")
}
user := devcycle.User{UserId: "test"}
dvcOptions := devcycle.Options{
Expand Down
8 changes: 4 additions & 4 deletions example/local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
)

func main() {
sdkKey := os.Getenv("DVC_SERVER_SDK_KEY")
sdkKey := os.Getenv("DEVCYCLE_SERVER_SDK_KEY")
if sdkKey == "" {
log.Fatal("DVC_SERVER_SDK_KEY env var not set: set it to your SDK key")
log.Fatal("DEVCYCLE_SERVER_SDK_KEY env var not set: set it to your SDK key")
}
variableKey := os.Getenv("DVC_VARIABLE_KEY")
variableKey := os.Getenv("DEVCYCLE_VARIABLE_KEY")
if variableKey == "" {
log.Fatal("DVC_VARIABLE_KEY env var not set: set it to a variable key")
log.Fatal("DEVCYCLE_VARIABLE_KEY env var not set: set it to a variable key")
}

user := devcycle.User{UserId: "test"}
Expand Down

0 comments on commit b2064fc

Please sign in to comment.