connectors

package
v0.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 EnvironmentLoader interface {
	Init(envID string, APIKey string) error
	LoadEnvironment(envID string, APIKey string) (*models.Environment, error)
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL