Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDTO ¶
type CreatedEvent ¶
type CreatedEvent struct { Sender user.User Session session.Session Data CreateDTO Result Position }
func NewCreatedEvent ¶
type DeletedEvent ¶
func NewDeletedEvent ¶
func NewDeletedEvent(ctx context.Context, result Position) (*DeletedEvent, error)
type Repository ¶
type Repository interface { Count(ctx context.Context) (int64, error) GetAll(ctx context.Context) ([]*Position, error) GetPaginated(ctx context.Context, params *FindParams) ([]*Position, error) GetByID(ctx context.Context, id uint) (*Position, error) Create(ctx context.Context, data *Position) error CreateOrUpdate(ctx context.Context, data *Position) error Update(ctx context.Context, data *Position) error Delete(ctx context.Context, id uint) error }
Click to show internal directories.
Click to hide internal directories.