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 (
	ErrAdminSubscriptionAlreadyExists          = errors.New("subscription: admin subscription already exists")
	ErrAdminSubscriptionNotFound               = errors.New("subscription: admin subscription not found")
	ErrAdminSubscriptionUnexpectedAffectedRows = errors.New("subscription: admin subscription unexpected affected rows")
)
View Source
var (
	ErrSubscriptionAlreadyExists          = errors.New("subscription: subscription already exists")
	ErrSubscriptionNotFound               = errors.New("subscription: subscription not found")
	ErrSubscriptionUnexpectedAffectedRows = errors.New("subscription: subscription unexpected affected rows")
)

Functions

This section is empty.

Types

type AdminSubscriptionStorage

type AdminSubscriptionStorage interface {
	CreateAdminSubscription(ctx context.Context, e *domain.Subscription) error
	UpdateAdminSubscription(ctx context.Context, e *domain.Subscription) error
	DeleteAdminSubscription(ctx context.Context, id string) error
	GetAdminSubscription(ctx context.Context, id string) (*domain.Subscription, error)
	ListAdminSubscriptions(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.Subscription, int, int64, error)
}

func NewAdminSubscriptionStorage

func NewAdminSubscriptionStorage(qe mysql.QueryExecer) AdminSubscriptionStorage

type SubscriptionStorage

type SubscriptionStorage interface {
	CreateSubscription(ctx context.Context, e *domain.Subscription, environmentNamespace string) error
	UpdateSubscription(ctx context.Context, e *domain.Subscription, environmentNamespace string) error
	DeleteSubscription(ctx context.Context, id, environmentNamespace string) error
	GetSubscription(ctx context.Context, id, environmentNamespace string) (*domain.Subscription, error)
	ListSubscriptions(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.Subscription, int, int64, error)
}

func NewSubscriptionStorage

func NewSubscriptionStorage(qe mysql.QueryExecer) SubscriptionStorage

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