Skip to content

Updating commons version #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v7
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"math"

"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/hash"
"github.com/splitio/go-split-commons/v7/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v7/engine/grammar"
"github.com/splitio/go-split-commons/v7/engine/hash"

"github.com/splitio/go-toolkit/v5/hasher"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
6 changes: 3 additions & 3 deletions engine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/engine/hash"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/grammar"
"github.com/splitio/go-split-commons/v7/engine/hash"

"github.com/splitio/go-toolkit/v5/hasher"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
10 changes: 5 additions & 5 deletions engine/evaluator/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"
"time"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar"
"github.com/splitio/go-split-commons/v6/storage"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine"
"github.com/splitio/go-split-commons/v7/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v7/engine/grammar"
"github.com/splitio/go-split-commons/v7/storage"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
8 changes: 4 additions & 4 deletions engine/evaluator/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package evaluator
import (
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/flagsets"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v6/storage/mocks"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/flagsets"
"github.com/splitio/go-split-commons/v7/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v7/storage/mocks"

"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/evaluator/mocks/mocks.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package mocks

import "github.com/splitio/go-split-commons/v6/engine/evaluator"
import "github.com/splitio/go-split-commons/v7/engine/evaluator"

// MockEvaluator mock evaluator
type MockEvaluator struct {
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/condition.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package grammar

import (
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package grammar
import (
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/allkeys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/allofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/anyofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/between.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"reflect"

"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
)

// BetweenMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/between_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/boolean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/contains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
12 changes: 6 additions & 6 deletions engine/grammar/matchers/dependency_test/dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine"
"github.com/splitio/go-split-commons/v6/engine/evaluator"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v6/flagsets"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine"
"github.com/splitio/go-split-commons/v7/engine/evaluator"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v7/flagsets"
"github.com/splitio/go-split-commons/v7/storage/inmemory/mutexmap"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/endswith_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equalto.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"reflect"

"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
)

// EqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equalto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/equaltoset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/gtoet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
)

// GreaterThanOrEqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/gtoet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/inlargesegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v6/storage"
"github.com/splitio/go-split-commons/v7/storage"
)

// InLargeSegmentMatcher matches if the key passed is in the large segment which the matcher was constructed with
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/matchers/inlargesegment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/storage/inmemory/mutexmap"
"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/insegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v6/storage"
"github.com/splitio/go-split-commons/v7/storage"
)

// InSegmentMatcher matches if the key passed is in the segment which the matcher was constructed with
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/matchers/insegment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/storage/inmemory/mutexmap"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/storage/inmemory/mutexmap"

"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/injection"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/ltoet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
)

// LessThanOrEqualToMatcher will match if two numbers or two datetimes are equal
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/ltoet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/matchers/matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/partofset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/regex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/semver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package matchers
import (
"fmt"

"github.com/splitio/go-split-commons/v6/engine/grammar/matchers/datatypes"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers/datatypes"
"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/semver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-toolkit/v5/logging"
)

Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/startswith_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
2 changes: 1 addition & 1 deletion engine/grammar/matchers/whitelist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v7/dtos"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
6 changes: 3 additions & 3 deletions engine/grammar/split.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package grammar

import (
"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/evaluator/impressionlabels"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers"

"github.com/splitio/go-toolkit/v5/injection"
"github.com/splitio/go-toolkit/v5/logging"
Expand Down
4 changes: 2 additions & 2 deletions engine/grammar/split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package grammar
import (
"testing"

"github.com/splitio/go-split-commons/v6/dtos"
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
"github.com/splitio/go-split-commons/v7/dtos"
"github.com/splitio/go-split-commons/v7/engine/grammar/matchers"

"github.com/splitio/go-toolkit/v5/logging"
)
Expand Down
Loading
Loading