Documentation ¶
Index ¶
- type UseCase
- func (u *UseCase) Create(ctx context.Context, c checking_account.CheckingAccount, pin string) (entity.ID, error)
- func (u *UseCase) Get(ctx context.Context, id entity.ID) (checking_account.CheckingAccount, error)
- func (u *UseCase) Update(ctx context.Context, c checking_account.CheckingAccount, pin string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase manages the ezb available CheckinAccount
func NewUseCase ¶
func NewUseCase(cm checking_account.Manager) *UseCase
NewUseCase inits a new checking account management usecase
func (*UseCase) Create ¶
func (u *UseCase) Create(ctx context.Context, c checking_account.CheckingAccount, pin string) (entity.ID, error)
Create a new CheckingAccount
func (*UseCase) Get ¶
func (u *UseCase) Get(ctx context.Context, id entity.ID) (checking_account.CheckingAccount, error)
Get an existing CheckingAccount
func (*UseCase) Update ¶
func (u *UseCase) Update(ctx context.Context, c checking_account.CheckingAccount, pin string) error
Update an existing CheckingAccount
Click to show internal directories.
Click to hide internal directories.