Documentation ¶
Index ¶
Constants ¶
View Source
const ( DataTypeEvaluationEvent = "evaluation_event" DataTypeGoalEvent = "goal_event" EvaluationCountSQLFile = "sql/evaluation_count.sql" GoalCountSQLFile = "sql/goal_count.sql" )
Variables ¶
View Source
var ErrExperimentResultNotFound = errors.New("experimentResult: experiment result not found")
Functions ¶
This section is empty.
Types ¶
type EvaluationEventCount ¶ added in v0.3.0
type EventStorage ¶ added in v0.2.0
type EventStorage interface { QueryEvaluationCount( ctx context.Context, environmentId string, startAt, endAt time.Time, featureID string, featureVersion int32, ) ([]*EvaluationEventCount, error) QueryGoalCount( ctx context.Context, environmentId string, startAt, endAt time.Time, goalID, featureID string, featureVersion int32, ) ([]*GoalEventCount, error) }
func NewEventStorage ¶ added in v0.2.0
type ExperimentResultStorage ¶
type ExperimentResultStorage interface {
GetExperimentResult(ctx context.Context, id, environmentId string) (*domain.ExperimentResult, error)
}
func NewExperimentResultStorage ¶
func NewExperimentResultStorage(qe mysql.QueryExecer) ExperimentResultStorage
type GoalEventCount ¶ added in v0.3.0
type MAUSummaryStorage ¶ added in v0.4.0
type MAUSummaryStorage interface { UpsertMAUSummary( ctx context.Context, mauSummary *eventcounter.MAUSummary, ) error }
func NewMAUSummaryStorage ¶ added in v0.4.0
func NewMAUSummaryStorage(qe mysql.QueryExecer) MAUSummaryStorage
type UserCountStorage ¶ added in v0.2.0
type UserCountStorage interface { GetMAUCount( ctx context.Context, environmentId, yearMonth string, ) (int64, int64, error) GetMAUCounts( ctx context.Context, yearMonth string, ) ([]*proto.MAUSummary, error) GetMAUCountsGroupBySourceID( ctx context.Context, yearMonth string, ) ([]*proto.MAUSummary, error) }
func NewUserCountStorage ¶ added in v0.2.0
func NewUserCountStorage(qe mysql.QueryExecer) UserCountStorage
Click to show internal directories.
Click to hide internal directories.