repositories

package
v0.0.0-...-85e3e2e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoEVO

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

func NewRepoEVO

func NewRepoEVO(db *sqlx.DB) *RepoEVO

func (*RepoEVO) GetFilteredData

func (r *RepoEVO) GetFilteredData(ctx context.Context, input domain.FilterSearchInput) ([]domain.Transaction, error)

func (*RepoEVO) InsertTransactions

func (r *RepoEVO) InsertTransactions(ctx context.Context, transactions []domain.Transaction) error

type RepoRemote

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

func NewRemoteRepo

func NewRemoteRepo(db *sqlx.DB) *RepoRemote

func (*RepoRemote) Get

func (r *RepoRemote) Get(ctx context.Context, from, to *int) ([]domain.Transaction, error)

type Repositories

type Repositories struct {
	RepoEVO    *RepoEVO
	RepoRemote *RepoRemote
}

func New

func New(db *sqlx.DB) *Repositories

Jump to

Keyboard shortcuts

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