v2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPushAlreadyExists          = errors.New("push: push already exists")
	ErrPushNotFound               = errors.New("push: push not found")
	ErrPushUnexpectedAffectedRows = errors.New("push: push unexpected affected rows")
)

Functions

This section is empty.

Types

type PushStorage

type PushStorage interface {
	CreatePush(ctx context.Context, e *domain.Push, environmentNamespace string) error
	UpdatePush(ctx context.Context, e *domain.Push, environmentNamespace string) error
	GetPush(ctx context.Context, id, environmentNamespace string) (*domain.Push, error)
	ListPushes(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.Push, int, int64, error)
}

func NewPushStorage

func NewPushStorage(qe mysql.QueryExecer) PushStorage

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