proofdb

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProofDBX          = "proof"
	ProofTableX       = "proof"
	LogDBX            = "proof_log"
	LogTableX         = "proof_log"
	TemplateDBX       = "proof_template"
	TemplateTableX    = "proof_template"
	ProofUpdateDBX    = "proof_update"
	ProofUpdateTableX = "proof_update"
	DefaultType       = "_doc"
)

default asset db

Variables

This section is empty.

Functions

This section is empty.

Types

type IProofDB

type IProofDB interface {
	GetProof(id string) (*model.Proof, error)
	ListProof(baseHash string) ([]*model.Proof, error)
	GetProofLog(id string) (*model.Log, error)
	GetTemplate(id string) (*model.Template, error)
	GetProofUpdateRecord(updatehash string, version int) (*model.Proof, error)
}

IProofDB ProofDB

type IProofRecord

type IProofRecord interface {
	Log(l *model.Log, id string, op int) db.Record
	Proof(p *model.Proof, id string, op int) db.Record
	Template(t *model.Template, id string, op int) db.Record
	ProofUpdateRecord(p *model.Proof, id string, op int) db.Record
}

IProofRecord 抽象记录, 用于输出, 不直接保存数据库

Jump to

Keyboard shortcuts

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