Documentation ¶
Overview ¶
README: Commented out everything until I find a way to solve import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDTO ¶
type CreateDTO struct { File io.ReadSeeker `validate:"required"` Name string `validate:"required"` Size int `validate:"required"` Type string }
type CreatedEvent ¶
type CreatedEvent struct { // Sender user.User Session session.Session Data CreateDTO Result Upload }
func NewCreatedEvent ¶
type DeletedEvent ¶
func NewDeletedEvent ¶
func NewDeletedEvent(ctx context.Context, result Upload) (*DeletedEvent, error)
type FindParams ¶
type Repository ¶
type Repository interface { Count(ctx context.Context) (int64, error) GetAll(ctx context.Context) ([]*Upload, error) GetPaginated(ctx context.Context, params *FindParams) ([]*Upload, error) GetByID(ctx context.Context, id uint) (*Upload, error) GetByHash(ctx context.Context, hash string) (*Upload, error) Create(ctx context.Context, data *Upload) error Update(ctx context.Context, data *Upload) error Delete(ctx context.Context, id uint) error }
type UpdatedEvent ¶
type UpdatedEvent struct { // Sender user.User Session session.Session Data UpdateDTO Result Upload }
func NewUpdatedEvent ¶
Click to show internal directories.
Click to hide internal directories.