Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidStatus = errors.New("invalid status")
Functions ¶
This section is empty.
Types ¶
type CreatedEvent ¶
func NewCreatedEvent ¶
type DeletedEvent ¶
func NewDeletedEvent ¶
func NewDeletedEvent(ctx context.Context, result Product) (*DeletedEvent, error)
type Repository ¶
type Repository interface { GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*Product, error) Count(ctx context.Context) (int64, error) GetAll(ctx context.Context) ([]*Product, error) GetByID(ctx context.Context, id uint) (*Product, error) Create(ctx context.Context, data *Product) error CreateOrUpdate(ctx context.Context, data *Product) error Update(ctx context.Context, data *Product) error Delete(ctx context.Context, id uint) error }
Click to show internal directories.
Click to hide internal directories.