Documentation
¶
Index ¶
- Variables
- func LogID(hash string) string
- func NewConvert(paraTitle, symbol string, name string) db.Convert
- func ProofID(hash string) string
- func TemplateID(hash string) string
- type DataParser
- type LogRecord
- type ProofConvert
- func (t *ProofConvert) AddProof(env *db.TxEnv, op int) ([]db.Record, error)
- func (t *ProofConvert) AddTemplate(env *db.TxEnv, op int) ([]db.Record, error)
- func (t *ProofConvert) ConvertTx(env *db.TxEnv, op int) ([]db.Record, error)
- func (t *ProofConvert) DelProof(env *db.TxEnv, op int) ([]db.Record, error)
- func (t *ProofConvert) RecoverProof(env *db.TxEnv, op int) ([]db.Record, error)
- func (t *ProofConvert) SetDB(proofDB proofdb.IProofDB, cfgDB proofconfig.ConfigDB) error
- type ProofRecord
- type ProofUpdateRecord
- type RecordGen
- func (g *RecordGen) Log(log *model.Log, id string, op int) db.Record
- func (g *RecordGen) Proof(proof *model.Proof, id string, op int) db.Record
- func (g *RecordGen) ProofUpdateRecord(proof *model.Proof, id string, op int) db.Record
- func (g *RecordGen) Template(template *model.Template, id string, op int) db.Record
- type TemplateRecord
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoPermission = errors.New("ErrNoPermission") ErrDisableProof = errors.New("ErrDisableProof") ErrParams = errors.New("ErrParams") ErrDecode = errors.New("ErrDecode") )
vars
Functions ¶
func NewConvert ¶
NewConvert 2注册插件需要的插件创建函数
Types ¶
type DataParser ¶
type DataParser interface {
// contains filtered or unexported methods
}
type ProofConvert ¶
type ProofConvert struct { Title string OrgTitle string Symbol string Name string RecordGen proofdb.IProofRecord // contains filtered or unexported fields }
ProofConvert
func (*ProofConvert) AddProof ¶
AddProof 增加存证: payload中的proof数据,目前只支持格式[{k:v},{k:v},{k:v}...]格式的jsonstr
func (*ProofConvert) AddTemplate ¶
AddTemplate 保存模板
func (*ProofConvert) RecoverProof ¶
RecoverProof 恢复存证
func (*ProofConvert) SetDB ¶
func (t *ProofConvert) SetDB(proofDB proofdb.IProofDB, cfgDB proofconfig.ConfigDB) error
SetDB SetDB
type ProofRecord ¶
ProofRecord 用于db 记录
type ProofUpdateRecord ¶
ProofUpdateRecord 用于db 记录
type RecordGen ¶
type RecordGen struct { TemplateDB string TemplateTable string ProofUpdateDB string ProofUpdateTable string // contains filtered or unexported fields }
RecordGen gen record
func NewRecordGen ¶
NewRecordGen NewRecordGen
func (*RecordGen) ProofUpdateRecord ¶
ProofUpdate gen proof update record
Source Files
¶
Click to show internal directories.
Click to hide internal directories.