transaction

package
v0.0.0-...-ee0ddec Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrValidationFailed = errors.New("validation failed")

Functions

This section is empty.

Types

type IService

type IService interface {
	CreateTransaction(ctx context.Context, txn *entity.Transaction) (*entity.Transaction, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(repository repository.IRepository) *Service

func (*Service) CreateTransaction

func (s *Service) CreateTransaction(ctx context.Context, transaction *entity.Transaction) (*entity.Transaction, error)

Jump to

Keyboard shortcuts

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