Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentScope ¶ added in v0.1.2
type AssignmentScope int64
const ( Decision AssignmentScope = 0 Activation AssignmentScope = 1 )
type AssignmentsManager ¶
type AssignmentsManager interface { ShouldSaveAssignments(context SaveAssignmentsContext) bool LoadAssignments(envID string, visitorID string) (*common.VisitorAssignments, error) SaveAssignments(envID string, visitorID string, vgIDAssignments map[string]*common.VisitorCache, date time.Time) error }
type Connectors ¶
type Connectors struct { HitsProcessor HitsProcessor EnvironmentLoader EnvironmentLoader AssignmentsManager AssignmentsManager }
type DecisionContext ¶
type DecisionContext struct { EnvID string APIKey string Logger *logger.Logger Connectors }
type EnvironmentLoader ¶
type HitsProcessor ¶
type HitsProcessor interface { TrackHits(hits TrackingHits) error Shutdown(context.Context) error }
type SaveAssignmentsContext ¶
type SaveAssignmentsContext struct {
AssignmentScope AssignmentScope
}
type TrackingHits ¶
type TrackingHits struct { CampaignActivations []*models.CampaignActivation VisitorContext []*models.VisitorContext }
Click to show internal directories.
Click to hide internal directories.