Documentation ¶
Index ¶
- type CharacterManager
- func (c CharacterManager) Create(ctx context.Context, command service.CharacterCreationCommand) (successEvent service.CharacterCreatedEvent, err error)
- func (c CharacterManager) Update(ctx context.Context, command service.CharacterUpdateCommand) (successEvent service.CharacterUpdatedEvent, err error)
- type CharacterManagerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterManager ¶
type CharacterManager struct {
// contains filtered or unexported fields
}
func NewCharacterManager ¶
func NewCharacterManager(opts *CharacterManagerOptions) *CharacterManager
func (CharacterManager) Create ¶
func (c CharacterManager) Create(ctx context.Context, command service.CharacterCreationCommand) (successEvent service.CharacterCreatedEvent, err error)
func (CharacterManager) Update ¶
func (c CharacterManager) Update(ctx context.Context, command service.CharacterUpdateCommand) (successEvent service.CharacterUpdatedEvent, err error)
type CharacterManagerOptions ¶
type CharacterManagerOptions struct {
Repository repository.Character
}
Click to show internal directories.
Click to hide internal directories.