repository

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FALSE = "false"

Variables

This section is empty.

Functions

This section is empty.

Types

type NoticeRepository

type NoticeRepository struct {
	Db sqlx.DB
}

func (*NoticeRepository) Count

func (c *NoticeRepository) Count(
	ctx context.Context,
	filter []*model.ConvenienceFilter,
) (uint64, error)

func (*NoticeRepository) Create

func (*NoticeRepository) CreateTables

func (c *NoticeRepository) CreateTables() error

func (*NoticeRepository) FindAllNotices

func (c *NoticeRepository) FindAllNotices(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	filter []*model.ConvenienceFilter,
) (*commons.PageResult[model.ConvenienceNotice], error)

func (*NoticeRepository) FindByInputAndOutputIndex

func (c *NoticeRepository) FindByInputAndOutputIndex(
	ctx context.Context, inputIndex uint64, outputIndex uint64,
) (*model.ConvenienceNotice, error)

func (*NoticeRepository) Update added in v1.0.1

type SynchronizerRepository

type SynchronizerRepository struct {
	Db sqlx.DB
}

func (*SynchronizerRepository) Count

func (c *SynchronizerRepository) Count(
	ctx context.Context,
) (uint64, error)

func (*SynchronizerRepository) Create

func (*SynchronizerRepository) CreateTables

func (c *SynchronizerRepository) CreateTables() error

func (*SynchronizerRepository) GetLastFetched

func (c *SynchronizerRepository) GetLastFetched(
	ctx context.Context,
) (*model.SynchronizerFetch, error)

type VoucherRepository

type VoucherRepository struct {
	Db sqlx.DB
}

func (*VoucherRepository) Count

func (c *VoucherRepository) Count(
	ctx context.Context,
	filter []*model.ConvenienceFilter,
) (uint64, error)

func (*VoucherRepository) CreateTables

func (c *VoucherRepository) CreateTables() error

func (*VoucherRepository) CreateVoucher

func (c *VoucherRepository) CreateVoucher(
	ctx context.Context, voucher *model.ConvenienceVoucher,
) (*model.ConvenienceVoucher, error)

func (*VoucherRepository) FindAllVouchers

func (c *VoucherRepository) FindAllVouchers(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	filter []*model.ConvenienceFilter,
) (*commons.PageResult[model.ConvenienceVoucher], error)

func (*VoucherRepository) FindVoucherByInputAndOutputIndex

func (c *VoucherRepository) FindVoucherByInputAndOutputIndex(
	ctx context.Context, inputIndex uint64, outputIndex uint64,
) (*model.ConvenienceVoucher, error)

func (*VoucherRepository) UpdateExecuted

func (c *VoucherRepository) UpdateExecuted(
	ctx context.Context, inputIndex uint64, outputIndex uint64,
	executedValue bool,
) error

func (*VoucherRepository) UpdateVoucher

func (c *VoucherRepository) UpdateVoucher(
	ctx context.Context, voucher *model.ConvenienceVoucher,
) (*model.ConvenienceVoucher, error)

func (*VoucherRepository) VoucherCount

func (c *VoucherRepository) VoucherCount(
	ctx context.Context,
) (uint64, error)

Jump to

Keyboard shortcuts

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