Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type CreateDTO ¶
type CreatedEvent ¶
func NewCreatedEvent ¶
type DeletedEvent ¶
func NewDeletedEvent ¶
func NewDeletedEvent(ctx context.Context, result Account) (*DeletedEvent, error)
type Repository ¶
type Repository interface { Count(ctx context.Context) (uint, error) GetAll(ctx context.Context) ([]*Account, error) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*Account, error) GetByID(ctx context.Context, id uint) (*Account, error) RecalculateBalance(ctx context.Context, id uint) error Create(ctx context.Context, payment *Account) error Update(ctx context.Context, payment *Account) error Delete(ctx context.Context, id uint) error }
Click to show internal directories.
Click to hide internal directories.