v2

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGoalEventAlreadyExists       = errors.New("persister: goal event already exists")
	ErrEvaluationEventAlreadyExists = errors.New("persister: evaluation event already exists")
	ErrUserEventAlreadyExists       = errors.New("persister: user event already exists")
)

Functions

This section is empty.

Types

type EventCreationStorage

type EventCreationStorage interface {
	CreateGoalEvent(
		ctx context.Context,
		event *eventproto.GoalEvent,
		id, environmentNamespace string,
		evaluations []string,
	) error
	CreateEvaluationEvent(ctx context.Context, event *eventproto.EvaluationEvent, id, environmentNamespace string) error
	CreateUserEvent(ctx context.Context, event *esproto.UserEvent, id, environmentNamespace string) error
}

func NewEventCreationStorage

func NewEventCreationStorage(qe postgres.Execer) EventCreationStorage

type MAUStorage added in v0.2.0

type MAUStorage interface {
	UpsertMAU(ctx context.Context, event *esproto.UserEvent, environmentNamespace string) error
}

func NewMysqlMAUStorage added in v0.2.0

func NewMysqlMAUStorage(qe mysql.QueryExecer) MAUStorage

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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