transferspg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateTransfer = errors.New("failed to create transfer in db")
	ErrFetch          = errors.New("failed to fetch transfers from db")

	ErrScanningRows = errors.New("failed to scan rows returned from query")
)

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(pool *pgxpool.Pool) *Repository

func (Repository) Create

func (r Repository) Create(ctx context.Context, transferInstance transfer.Transfer) (transfer.Transfer, error)

func (Repository) Fetch

func (r Repository) Fetch(ctx context.Context) ([]transfer.Transfer, error)

Jump to

Keyboard shortcuts

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