transaction

package
v0.0.0-...-e83584d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetByID(ctx context.Context, id int64) (*models.Transaction, error)
	Store(ctx context.Context, a *models.Transaction) error
	Update(ctx context.Context, ar *models.Transaction) error
}

Repository represent the transaction's repository contract

type Usecase

type Usecase interface {
	GetByID(ctx context.Context, id int64) (*models.Transaction, error)
	Store(context.Context, *models.Transaction) error
	Update(ctx context.Context, ar *models.Transaction) error
}

Usecase represent the transaction's usecases

Directories

Path Synopsis
delivery
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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