app

package
v0.0.0-...-bec0fbe Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by gog; DO NOT EDIT. Version: 0.5.0

Index

Constants

This section is empty.

Variables

View Source
var ErrAggregateNotFound = errors.New("aggregate Not Found")

Functions

This section is empty.

Types

type BalanceService

type BalanceService struct {
	projection.WriteResumeStore
	// contains filtered or unexported fields
}

gog:aspect

func NewBalanceService

func NewBalanceService(
	wrs projection.WriteResumeStore,
	balanceRepository domain.BalanceRepository,
) BalanceService

func (BalanceService) AccountCreated

func (b BalanceService) AccountCreated(ctx context.Context, m domain.Metadata, ac event.AccountCreated) error

gog:@monitor

func (BalanceService) GetOne

func (b BalanceService) GetOne(ctx context.Context, id uuid.UUID) (entity.Balance, error)

gog:@monitor

func (BalanceService) ListAll

func (b BalanceService) ListAll(ctx context.Context) ([]entity.Balance, error)

gog:@monitor

func (BalanceService) MoneyDeposited

func (b BalanceService) MoneyDeposited(ctx context.Context, m domain.Metadata, ac event.MoneyDeposited) error

gog:@monitor

func (BalanceService) MoneyWithdrawn

func (b BalanceService) MoneyWithdrawn(ctx context.Context, m domain.Metadata, ac event.MoneyWithdrawn) error

gog:@monitor

type BalanceServiceAspect

type BalanceServiceAspect struct {
	Next BalanceService
}

func (*BalanceServiceAspect) AccountCreated

func (*BalanceServiceAspect) GetOne

func (*BalanceServiceAspect) ListAll

func (a *BalanceServiceAspect) ListAll(ctx context.Context) ([]entity.Balance, error)

func (*BalanceServiceAspect) MoneyDeposited

func (*BalanceServiceAspect) MoneyWithdrawn

Jump to

Keyboard shortcuts

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