Documentation ¶
Index ¶
- Variables
- type BlobHashRepository
- func (r *BlobHashRepository) DeleteAllAfterBlockID(blockID uint64) error
- func (r *BlobHashRepository) FindLatestBlockID() (uint64, error)
- func (r *BlobHashRepository) FirstByBlobHash(blobHash string) (*blobstorage.BlobHash, error)
- func (r *BlobHashRepository) Save(opts blobstorage.SaveBlobHashOpts) error
- type DB
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoDB = errors.Validation.NewWithKeyAndDetail("ERR_NO_DB", "no db")
)
Functions ¶
This section is empty.
Types ¶
type BlobHashRepository ¶
type BlobHashRepository struct {
// contains filtered or unexported fields
}
func NewBlobHashRepository ¶
func NewBlobHashRepository(db DB) (*BlobHashRepository, error)
func (*BlobHashRepository) DeleteAllAfterBlockID ¶
func (r *BlobHashRepository) DeleteAllAfterBlockID(blockID uint64) error
DeleteAllAfterBlockID is used when a reorg is detected
func (*BlobHashRepository) FindLatestBlockID ¶
func (r *BlobHashRepository) FindLatestBlockID() (uint64, error)
func (*BlobHashRepository) FirstByBlobHash ¶
func (r *BlobHashRepository) FirstByBlobHash(blobHash string) (*blobstorage.BlobHash, error)
func (*BlobHashRepository) Save ¶
func (r *BlobHashRepository) Save(opts blobstorage.SaveBlobHashOpts) error
Click to show internal directories.
Click to hide internal directories.