Documentation ¶
Overview ¶
Package repo saves data into the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPresentationNotFound = errors.New("presentation not found") ErrUnknown = errors.New("unknown") )
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { CreatePresentation(ctx context.Context, presentation model.Presentation) (uint64, error) MultiCreatePresentations(ctx context.Context, presentations []model.Presentation) (int64, error) UpdatePresentation(ctx context.Context, presentation model.Presentation) (bool, error) DescribePresentation(ctx context.Context, presentationID uint64) (*model.Presentation, error) ListPresentations(ctx context.Context, limit uint64, offset uint64) ([]model.Presentation, error) RemovePresentation(ctx context.Context, presentationID 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.