repo

package
v0.0.0-...-3d8a049 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCleaner

type EventCleaner interface {
	Clean(ctx context.Context, basketEvents model.BasketEvents) error
}

EventCleaner is the interface not to be used directly.

See Retranslator.

type EventRepo

type EventRepo interface {
	Lock(ctx context.Context, n uint64) (model.BasketEvents, error)
	Unlock(ctx context.Context, eventIDs []uint64) error
	Remove(ctx context.Context, eventIDs []uint64) (bool, error)
}

EventRepo is the interface not to be used directly.

See Retranslator.

func NewRepo

func NewRepo(db *sqlx.DB) EventRepo

NewRepo returns the Repo interface.

type EventUpdater

type EventUpdater interface {
	Update(ctx context.Context, basketEvents model.BasketEvents) error
}

EventCleaner is the interface not to be used directly.

See Retranslator.

Jump to

Keyboard shortcuts

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