dao

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ProofLogMapping = `` /* 757-byte string literal not displayed */

ProofLogMapping Proof 删除和恢复的日志

View Source
const ProofMapping = `` /* 1183-byte string literal not displayed */

ProofMapping es proof sender: 存证的上传者 organization:存证属于哪个组织或者公司 height_index:存证所在的区块高度 tx_hash:存证所在的交易hash值 ref_hashes:与本存证相关联的交易hash data:存证类容 delete: 此存证被删除,标记删除此存证的hash ProofMapping mapping

View Source
const ProofTemplateMapping = `` /* 1196-byte string literal not displayed */

Variables

This section is empty.

Functions

func InitDB

func InitDB(cli db.DBCreator, ProofDBX, ProofTableX, LogDBX, LogTableX, TemplateDBX, TemplateTableX, ProofUpdateDBX, ProofUpdateTableX string) error

InitDB init db

Types

type ProofDB

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

ProofDB ProofDB

func NewProofDB

func NewProofDB(db db.WrapDB) *ProofDB

NewProofDB NewProofDB

func (*ProofDB) GetProof

func (db1 *ProofDB) GetProof(id string) (*model.Proof, error)

GetProof impl

func (*ProofDB) GetProofLog

func (db1 *ProofDB) GetProofLog(id string) (*model.Log, error)

GetProofLog impl

func (*ProofDB) GetProofUpdateRecord

func (db1 *ProofDB) GetProofUpdateRecord(id string, version int) (*model.Proof, error)

GetProofLog impl

func (*ProofDB) GetTemplate

func (db1 *ProofDB) GetTemplate(id string) (*model.Template, error)

GetProof impl

func (*ProofDB) ListProof

func (db1 *ProofDB) ListProof(id string) ([]*model.Proof, error)

ListProof 找出id增量存证 basehash = id

Jump to

Keyboard shortcuts

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