assetscommands

package
v0.0.0-...-44f2542 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL