Documentation
¶
Index ¶
- type NotificationService
- type StatusMapper
- type StatusRepository
- type StatusService
- type TransactionMapper
- type TransactionRepository
- type TransactionService
- func (s *TransactionService) Create(value float64) (*dto.Transaction, error)
- func (s *TransactionService) Delete(id uuid.UUID) (*dto.Transaction, error)
- func (s *TransactionService) GetAll() ([]dto.Transaction, error)
- func (s *TransactionService) GetByID(id uuid.UUID) (*dto.Transaction, error)
- func (s *TransactionService) Update(id uuid.UUID, status string, value float64) (*dto.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationService ¶
type NotificationService struct {
// contains filtered or unexported fields
}
func NewNotificationService ¶
func NewNotificationService(topic, address string) *NotificationService
func (*NotificationService) Publish ¶
func (s *NotificationService) Publish(message any) (err error)
type StatusMapper ¶
type StatusRepository ¶
type StatusService ¶
type StatusService struct {
// contains filtered or unexported fields
}
func NewStatusService ¶
func NewStatusService(repository StatusRepository, mapper StatusMapper) *StatusService
type TransactionMapper ¶
type TransactionMapper interface { ToDTO(transaction *entity.Transaction) *dto.Transaction FromDTO(transaction *dto.Transaction) *entity.Transaction }
type TransactionRepository ¶
type TransactionRepository interface { Create(transaction *entity.Transaction) error FindByID(id uuid.UUID) (*entity.Transaction, error) FindAll() ([]entity.Transaction, error) Update(transaction *entity.Transaction) error Delete(id uuid.UUID) (*entity.Transaction, error) }
type TransactionService ¶
type TransactionService struct {
// contains filtered or unexported fields
}
func NewTransactionService ¶
func NewTransactionService(repository TransactionRepository, mapper TransactionMapper) *TransactionService
func (*TransactionService) Create ¶
func (s *TransactionService) Create(value float64) (*dto.Transaction, error)
func (*TransactionService) Delete ¶
func (s *TransactionService) Delete(id uuid.UUID) (*dto.Transaction, error)
func (*TransactionService) GetAll ¶
func (s *TransactionService) GetAll() ([]dto.Transaction, error)
func (*TransactionService) GetByID ¶
func (s *TransactionService) GetByID(id uuid.UUID) (*dto.Transaction, error)
func (*TransactionService) Update ¶
func (s *TransactionService) Update(id uuid.UUID, status string, value float64) (*dto.Transaction, error)
Click to show internal directories.
Click to hide internal directories.