transactiongateway

package
v0.0.0-...-97d844a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDatabaseUndefined = errors.New("database is not defined")

ErrDatabaseUndefined ...

Functions

This section is empty.

Types

type Repository

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

Repository for transactions

func NewTransactionRepository

func NewTransactionRepository(db *sql.DB) (*Repository, error)

NewTransactionRepository creates a new seller repository instance

func (*Repository) GetAll

func (r *Repository) GetAll() ([]*transaction.Entity, error)

GetAll returns all transactions

func (*Repository) NewFromLine

func (r *Repository) NewFromLine(line []string) error

NewFromLine adds a new transaction given it's raw line

Jump to

Keyboard shortcuts

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