Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotSent = iota NotConfirmed Confirmed )
View Source
const (
TableName = "proof"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type ProofModel ¶
type ProofModel interface { CreateProofTable() error DropProofTable() error CreateProof(row *Proof) error GetProofsBetween(start int64, end int64) (proofs []*Proof, err error) GetLatestProof() (p *Proof, err error) GetLatestConfirmedProof() (p *Proof, err error) GetProofByBlockHeight(height int64) (p *Proof, err error) UpdateProofsInTransact(tx *gorm.DB, m map[int64]int) error }
func NewProofModel ¶
func NewProofModel(db *gorm.DB) ProofModel
Click to show internal directories.
Click to hide internal directories.