Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ExperimentStorage ¶
type ExperimentStorage interface { CreateExperiment(ctx context.Context, e *domain.Experiment, environmentId string) error UpdateExperiment(ctx context.Context, e *domain.Experiment, environmentId string) error GetExperiment(ctx context.Context, id, environmentId string) (*domain.Experiment, error) ListExperiments( ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int, ) ([]*proto.Experiment, int, int64, error) }
func NewExperimentStorage ¶
func NewExperimentStorage(qe mysql.QueryExecer) ExperimentStorage
type GoalStorage ¶
type GoalStorage interface { CreateGoal(ctx context.Context, g *domain.Goal, environmentId string) error UpdateGoal(ctx context.Context, g *domain.Goal, environmentId string) error GetGoal(ctx context.Context, id, environmentId string) (*domain.Goal, error) ListGoals( ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int, isInUseStatus *bool, environmentId string, ) ([]*proto.Goal, int, int64, error) }
func NewGoalStorage ¶
func NewGoalStorage(qe mysql.QueryExecer) GoalStorage
Click to show internal directories.
Click to hide internal directories.