-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_eval_context.go
22 lines (20 loc) · 841 Bytes
/
model_eval_context.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* Flagr
*
* Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
*
* API version: 1.1.4
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package goflagr
type EvalContext struct {
// entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one.
EntityID string `json:"entityID,omitempty"`
EntityType string `json:"entityType,omitempty"`
EntityContext *interface{} `json:"entityContext,omitempty"`
EnableDebug bool `json:"enableDebug,omitempty"`
// flagID
FlagID int64 `json:"flagID,omitempty"`
// flagKey. flagID or flagKey will resolve to the same flag. Either works.
FlagKey string `json:"flagKey,omitempty"`
}