Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BumpItem ¶
type BumpItem struct{}
func (*BumpItem) ApplyProjection ¶
func (b *BumpItem) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
type CreateCollection ¶
type CreateCollection struct {
Name string `json:"name" validate:"required,collection_name"`
}
func (*CreateCollection) ApplyProjection ¶
func (c *CreateCollection) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
func (*CreateCollection) Type ¶
func (c *CreateCollection) Type() action.Action
Type implements Payload.
type CreateItem ¶
type CreateItem struct {
Content []byte `json:"content"`
Mimetype mimetype.MimeType `json:"mimetype"`
CollectionID string `json:"collection_id"`
}
func (*CreateItem) ApplyProjection ¶
func (c *CreateItem) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
type DeleteCollection ¶
type DeleteCollection struct{}
func (*DeleteCollection) ApplyProjection ¶
func (d *DeleteCollection) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
func (*DeleteCollection) Type ¶
func (d *DeleteCollection) Type() action.Action
Type implements Payload.
type DeleteItem ¶
type DeleteItem struct{}
func (*DeleteItem) ApplyProjection ¶
func (d *DeleteItem) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
type Payload ¶
type Payload interface {
Type() action.Action
ApplyProjection(
ctx context.Context,
tx bun.Tx,
repo repository.Repository,
options ProjectionOptions,
) error
}
type ProjectionOptions ¶
type RawPayload ¶
type RawPayload interface {
[]byte | json.RawMessage
}
type RenameCollection ¶
type RenameCollection struct {
NewName string `json:"new_name"`
}
func (*RenameCollection) ApplyProjection ¶
func (r *RenameCollection) ApplyProjection( ctx context.Context, tx bun.Tx, repo repository.Repository, options ProjectionOptions, ) error
ApplyProjection implements Payload.
func (*RenameCollection) Type ¶
func (r *RenameCollection) Type() action.Action
Type implements Payload.
Click to show internal directories.
Click to hide internal directories.