postgres

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvoiceRepository

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

func NewInvoiceRepository

func NewInvoiceRepository(tableName string, db postgres.DB) InvoiceRepository

func (InvoiceRepository) Find

func (r InvoiceRepository) Find(ctx context.Context, invoiceID string) (*models.Invoice, error)

func (InvoiceRepository) Save

func (r InvoiceRepository) Save(ctx context.Context, invoice *models.Invoice) error

func (InvoiceRepository) Update

func (r InvoiceRepository) Update(ctx context.Context, invoice *models.Invoice) error

type PaymentRepository

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

func NewPaymentRepository

func NewPaymentRepository(tableName string, db postgres.DB) PaymentRepository

func (PaymentRepository) Find

func (r PaymentRepository) Find(ctx context.Context, paymentID string) (*models.Payment, error)

func (PaymentRepository) Save

func (r PaymentRepository) Save(ctx context.Context, payment *models.Payment) error

Jump to

Keyboard shortcuts

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