Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAssetCommand ¶
type CreateAssetCommand struct { AssetID string AssetName string AssetType string AssetMoneyAmount float64 AssetMoneyCurrency string }
func (CreateAssetCommand) CommandName ¶
func (c CreateAssetCommand) CommandName() string
type CreateAssetCommandHandler ¶
type CreateAssetCommandHandler struct {
// contains filtered or unexported fields
}
func NewCreateAssetCommandHandler ¶
func NewCreateAssetCommandHandler(assets assets.Repository) *CreateAssetCommandHandler
func (*CreateAssetCommandHandler) Handle ¶
func (h *CreateAssetCommandHandler) Handle(ctx context.Context, cmd CreateAssetCommand) (interface{}, error)
type DeleteAssetCommand ¶
type DeleteAssetCommand struct {
AssetID string
}
func (DeleteAssetCommand) CommandName ¶
func (c DeleteAssetCommand) CommandName() string
type DeleteAssetCommandHandler ¶
type DeleteAssetCommandHandler struct {
// contains filtered or unexported fields
}
func NewDeleteAssetCommandHandler ¶
func NewDeleteAssetCommandHandler(assets assets.Repository) *DeleteAssetCommandHandler
func (*DeleteAssetCommandHandler) Handle ¶
func (h *DeleteAssetCommandHandler) Handle(ctx context.Context, cmd DeleteAssetCommand) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.