Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardsRepository ¶
type Command ¶
type Command interface {
Name() string
}
Command defines the interface of the commands to be performed
type CommandHandler ¶
CommandHandler defines the interface of the handler to run commands
type CreateCardCmd ¶
type CreateCardCmd struct { ID uuid.UUID CardName string CardLanguage string CardURL string CardSetName string CardRarity string CardImage string CardManaCost string CardReprint bool CardPrice string CardReleaseAt time.Time CardOpts []domain.Opt CardQuantity int CardCondition domain.Condition }
CreateCardCmd is a VTO
func (CreateCardCmd) Name ¶
func (c CreateCardCmd) Name() string
Name returns the name of the command to create a card
type CreateCardHandler ¶
type CreateCardHandler struct {
// contains filtered or unexported fields
}
CreateCardHandler is the handler to create a card
func NewCreateCardHandler ¶
func NewCreateCardHandler(repository CardsRepository) CreateCardHandler
NewCreateCardHandler is a constructor
type InvalidCommandError ¶
func (InvalidCommandError) Error ¶
func (ice InvalidCommandError) Error() string
Click to show internal directories.
Click to hide internal directories.