Documentation ¶
Index ¶
- type Repository
- func (r *Repository) DeleteProof(ctx context.Context, address string) error
- func (r *Repository) ProofByAddress(ctx context.Context, address string) (*entity.DBProof, error)
- func (r *Repository) Proofs(ctx context.Context) ([]entity.DBProof, error)
- func (r *Repository) SetProof(ctx context.Context, p entity.Proof, address string) error
- func (r *Repository) Transaction(ctx context.Context, f func(ctx context.Context, tx *sqlx.Tx) error) error
- func (r *Repository) UnsyncedProofsAcquire(ctx context.Context, tx *sqlx.Tx) ([]entity.DBProof, error)
- func (r *Repository) UnsyncedProofsUpdate(ctx context.Context, tx *sqlx.Tx, proofs []entity.DBProof) error
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 (*Repository) Transaction ¶
func (*Repository) UnsyncedProofsAcquire ¶
func (*Repository) UnsyncedProofsUpdate ¶
Click to show internal directories.
Click to hide internal directories.