repository

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIRepository

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

func NewCLIRepository

func NewCLIRepository(db *gorm.DB) *CLIRepository

func (*CLIRepository) Create

func (repo *CLIRepository) Create(ctx context.Context, events model.Events) error

func (*CLIRepository) Delete

func (repo *CLIRepository) Delete(ctx context.Context, events model.Events) error

func (*CLIRepository) GetMarked

func (repo *CLIRepository) GetMarked(ctx context.Context) (model.Events, error)

func (*CLIRepository) MarkSent

func (repo *CLIRepository) MarkSent(ctx context.Context) error

func (*CLIRepository) WithTx

func (repo *CLIRepository) WithTx(txProvider service.TxProvider) service.Repository

type TxProvider

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

func NewTxProvider

func NewTxProvider(db *gorm.DB) *TxProvider

func (*TxProvider) Transaction

func (p *TxProvider) Transaction(f func(txProvider service.TxProvider) error) error

Jump to

Keyboard shortcuts

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