Documentation ¶
Index ¶
- Constants
- type NoticeRepository
- func (c *NoticeRepository) Count(ctx context.Context, filter []*model.ConvenienceFilter) (uint64, error)
- func (c *NoticeRepository) Create(ctx context.Context, data *model.ConvenienceNotice) (*model.ConvenienceNotice, error)
- func (c *NoticeRepository) CreateTables() error
- func (c *NoticeRepository) FindAllNotices(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.ConvenienceNotice], error)
- func (c *NoticeRepository) FindByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceNotice, error)
- func (c *NoticeRepository) Update(ctx context.Context, data *model.ConvenienceNotice) (*model.ConvenienceNotice, error)
- type SynchronizerRepository
- func (c *SynchronizerRepository) Count(ctx context.Context) (uint64, error)
- func (c *SynchronizerRepository) Create(ctx context.Context, data *model.SynchronizerFetch) (*model.SynchronizerFetch, error)
- func (c *SynchronizerRepository) CreateTables() error
- func (c *SynchronizerRepository) GetLastFetched(ctx context.Context) (*model.SynchronizerFetch, error)
- type VoucherRepository
- func (c *VoucherRepository) Count(ctx context.Context, filter []*model.ConvenienceFilter) (uint64, error)
- func (c *VoucherRepository) CreateTables() error
- func (c *VoucherRepository) CreateVoucher(ctx context.Context, voucher *model.ConvenienceVoucher) (*model.ConvenienceVoucher, error)
- func (c *VoucherRepository) FindAllVouchers(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.ConvenienceVoucher], error)
- func (c *VoucherRepository) FindVoucherByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceVoucher, error)
- func (c *VoucherRepository) UpdateExecuted(ctx context.Context, inputIndex uint64, outputIndex uint64, executedValue bool) error
- func (c *VoucherRepository) UpdateVoucher(ctx context.Context, voucher *model.ConvenienceVoucher) (*model.ConvenienceVoucher, error)
- func (c *VoucherRepository) VoucherCount(ctx context.Context) (uint64, error)
Constants ¶
View Source
const FALSE = "false"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoticeRepository ¶
func (*NoticeRepository) Count ¶
func (c *NoticeRepository) Count( ctx context.Context, filter []*model.ConvenienceFilter, ) (uint64, error)
func (*NoticeRepository) Create ¶
func (c *NoticeRepository) Create( ctx context.Context, data *model.ConvenienceNotice, ) (*model.ConvenienceNotice, error)
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
func (c *NoticeRepository) Update( ctx context.Context, data *model.ConvenienceNotice, ) (*model.ConvenienceNotice, error)
type SynchronizerRepository ¶
func (*SynchronizerRepository) Count ¶
func (c *SynchronizerRepository) Count( ctx context.Context, ) (uint64, error)
func (*SynchronizerRepository) Create ¶
func (c *SynchronizerRepository) Create( ctx context.Context, data *model.SynchronizerFetch, ) (*model.SynchronizerFetch, error)
func (*SynchronizerRepository) CreateTables ¶
func (c *SynchronizerRepository) CreateTables() error
func (*SynchronizerRepository) GetLastFetched ¶
func (c *SynchronizerRepository) GetLastFetched( ctx context.Context, ) (*model.SynchronizerFetch, error)
type VoucherRepository ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.