Documentation ¶
Overview ¶
Package repo saves data into the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSlideNotFound = errors.New("slide not found") ErrUnknown = errors.New("unknown") )
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { CreateSlide(ctx context.Context, slide model.Slide) (uint64, error) MultiCreateSlides(ctx context.Context, slides []model.Slide) (int64, error) UpdateSlide(ctx context.Context, slide model.Slide) (bool, error) DescribeSlide(ctx context.Context, slideID uint64) (*model.Slide, error) ListSlides(ctx context.Context, limit uint64, offset uint64) ([]model.Slide, error) RemoveSlide(ctx context.Context, slideID uint64) (bool, error) }
Repo is the interface that wraps the basic methods of the database.
Click to show internal directories.
Click to hide internal directories.