repository

package
v0.0.0-...-3cbc610 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

func (*Repository) DeleteProof

func (r *Repository) DeleteProof(ctx context.Context, address string) error

func (*Repository) ProofByAddress

func (r *Repository) ProofByAddress(ctx context.Context, address string) (*entity.DBProof, error)

func (*Repository) Proofs

func (r *Repository) Proofs(ctx context.Context) ([]entity.DBProof, error)

func (*Repository) SetProof

func (r *Repository) SetProof(ctx context.Context, p entity.Proof, address string) error

func (*Repository) Transaction

func (r *Repository) Transaction(ctx context.Context, f func(ctx context.Context, tx *sqlx.Tx) error) error

func (*Repository) UnsyncedProofsAcquire

func (r *Repository) UnsyncedProofsAcquire(ctx context.Context, tx *sqlx.Tx) ([]entity.DBProof, error)

func (*Repository) UnsyncedProofsUpdate

func (r *Repository) UnsyncedProofsUpdate(ctx context.Context, tx *sqlx.Tx, proofs []entity.DBProof) error

Jump to

Keyboard shortcuts

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