entryrepo

package
v0.0.0-...-e6e2e8d Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package entryrepo manages repository layer of entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoPGS

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

RepoPGS facilitates entry repository layer logic.

func NewRepoPGS

func NewRepoPGS(db dbpkg.SQLInterface) *RepoPGS

NewRepoPGS returns account RepoPGS.

func (*RepoPGS) Create

func (r *RepoPGS) Create(ctx context.Context, amount string, account int32) (domain.Entry, error)

Create creates the entry and then returns it.

func (*RepoPGS) Get

func (r *RepoPGS) Get(ctx context.Context, id int64) (domain.Entry, error)

Get returns the entry with the given id.

func (*RepoPGS) List

func (r *RepoPGS) List(ctx context.Context, accountID int32, limit, offset int32) ([]domain.Entry, error)

List returns the specified number of entries for the given accountID.

Jump to

Keyboard shortcuts

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