@@ -24,8 +24,8 @@ func newEppoClient(configRequestor iConfigRequestor, poller *poller, assignmentL
24
24
return ec
25
25
}
26
26
27
- func (ec * EppoClient ) GetBoolAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , defaultValue bool ) (bool , error ) {
28
- variation , err := ec .getAssignment (subjectKey , flagKey , subjectAttributes , booleanVariation )
27
+ func (ec * EppoClient ) GetBoolAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , defaultValue bool ) (bool , error ) {
28
+ variation , err := ec .getAssignment (flagKey , subjectKey , subjectAttributes , booleanVariation )
29
29
if err != nil || variation == nil {
30
30
return defaultValue , err
31
31
}
@@ -36,8 +36,8 @@ func (ec *EppoClient) GetBoolAssignment(subjectKey string, flagKey string, subje
36
36
return result , err
37
37
}
38
38
39
- func (ec * EppoClient ) GetNumericAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , defaultValue float64 ) (float64 , error ) {
40
- variation , err := ec .getAssignment (subjectKey , flagKey , subjectAttributes , numericVariation )
39
+ func (ec * EppoClient ) GetNumericAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , defaultValue float64 ) (float64 , error ) {
40
+ variation , err := ec .getAssignment (flagKey , subjectKey , subjectAttributes , numericVariation )
41
41
if err != nil || variation == nil {
42
42
return defaultValue , err
43
43
}
@@ -48,8 +48,8 @@ func (ec *EppoClient) GetNumericAssignment(subjectKey string, flagKey string, su
48
48
return result , err
49
49
}
50
50
51
- func (ec * EppoClient ) GetIntegerAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , defaultValue int64 ) (int64 , error ) {
52
- variation , err := ec .getAssignment (subjectKey , flagKey , subjectAttributes , integerVariation )
51
+ func (ec * EppoClient ) GetIntegerAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , defaultValue int64 ) (int64 , error ) {
52
+ variation , err := ec .getAssignment (flagKey , subjectKey , subjectAttributes , integerVariation )
53
53
if err != nil || variation == nil {
54
54
return defaultValue , err
55
55
}
@@ -60,8 +60,8 @@ func (ec *EppoClient) GetIntegerAssignment(subjectKey string, flagKey string, su
60
60
return result , err
61
61
}
62
62
63
- func (ec * EppoClient ) GetStringAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , defaultValue string ) (string , error ) {
64
- variation , err := ec .getAssignment (subjectKey , flagKey , subjectAttributes , stringVariation )
63
+ func (ec * EppoClient ) GetStringAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , defaultValue string ) (string , error ) {
64
+ variation , err := ec .getAssignment (flagKey , subjectKey , subjectAttributes , stringVariation )
65
65
if err != nil || variation == nil {
66
66
return defaultValue , err
67
67
}
@@ -72,15 +72,15 @@ func (ec *EppoClient) GetStringAssignment(subjectKey string, flagKey string, sub
72
72
return result , err
73
73
}
74
74
75
- func (ec * EppoClient ) GetJSONAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , defaultValue interface {}) (interface {}, error ) {
76
- variation , err := ec .getAssignment (subjectKey , flagKey , subjectAttributes , jsonVariation )
75
+ func (ec * EppoClient ) GetJSONAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , defaultValue interface {}) (interface {}, error ) {
76
+ variation , err := ec .getAssignment (flagKey , subjectKey , subjectAttributes , jsonVariation )
77
77
if err != nil || variation == nil {
78
78
return defaultValue , err
79
79
}
80
80
return variation , err
81
81
}
82
82
83
- func (ec * EppoClient ) getAssignment (subjectKey string , flagKey string , subjectAttributes SubjectAttributes , variationType variationType ) (interface {}, error ) {
83
+ func (ec * EppoClient ) getAssignment (flagKey string , subjectKey string , subjectAttributes SubjectAttributes , variationType variationType ) (interface {}, error ) {
84
84
if subjectKey == "" {
85
85
panic ("no subject key provided" )
86
86
}
0 commit comments