v2

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 7 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, environmentId string) error
	UpdatePush(ctx context.Context, e *domain.Push, environmentId string) error
	GetPush(ctx context.Context, id, environmentId 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(client mysql.Client) 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