Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluationContext ¶
type EvaluationContext = coreCtx.EvaluationContext
func NewAnonymousEvaluationContext
deprecated
func NewAnonymousEvaluationContext(key string) EvaluationContext
Deprecated: NewAnonymousEvaluationContext is here for compatibility reason. Please use NewEvaluationContext instead and add a attributes attribute to know that it is an anonymous user.
ctx := NewEvaluationContext("my-targetingKey") ctx.AddCustomAttribute("anonymous", true)
func NewEvaluationContext ¶
func NewEvaluationContext(key string) EvaluationContext
NewEvaluationContext creates a new evaluation context identified by the given targetingKey.
type EvaluationContextBuilder ¶
type EvaluationContextBuilder = coreCtx.EvaluationContextBuilder
func NewEvaluationContextBuilder ¶
func NewEvaluationContextBuilder(key string) EvaluationContextBuilder
NewEvaluationContextBuilder constructs a new EvaluationContextBuilder, specifying the user targetingKey.
For authenticated users, the targetingKey may be a username or e-mail address. For anonymous users, this could be an IP address or session ID.
type GoffContextSpecifics ¶
type GoffContextSpecifics = coreCtx.GoffContextSpecifics
Click to show internal directories.
Click to hide internal directories.