Documentation
¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func DmileDataByMerkleRoot(db *cdigest.Database, contract, key string) (*types.Data, base.State, error)
- func DmileDataByTxID(db *cdigest.Database, contract, key string) (*types.Data, base.State, error)
- func DmileDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)
- type BlockSession
- type Digester
- type DmileDataDoc
- type DmileDesignDoc
- type Handlers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathDmileDesign = `/dmile/{contract:(?i)` + types.REStringAddressString + `}` HandlerPathDmileDataByTxID = `/dmile/{contract:(?i)` + types.REStringAddressString + `}/txhash/{tx_hash:` + types.ReSpecialCh + `}` HandlerPathDmileDataByMerkleRoot = `/dmile/{contract:(?i)` + types.REStringAddressString + `}/merkleroot/{merkle_root:` + types.ReSpecialCh + `}` )
Functions ¶
func DigestBlock ¶
func DmileDataByMerkleRoot ¶
func DmileDataByTxID ¶
Types ¶
type BlockSession ¶
func NewBlockSession ¶
func NewBlockSession( st *currencydigest.Database, blk mitumbase.BlockMap, ops []mitumbase.Operation, opstree fixedtree.Tree, sts []mitumbase.State, proposal mitumbase.ProposalSignFact, vs string, ) (*BlockSession, error)
func (*BlockSession) Close ¶
func (bs *BlockSession) Close() error
func (*BlockSession) Prepare ¶
func (bs *BlockSession) Prepare() error
type Digester ¶
type Digester struct {
sync.RWMutex
*util.ContextDaemon
*logging.Logging
// contains filtered or unexported fields
}
func NewDigester ¶
func NewDigester( st *currencydigest.Database, root string, sourceReaders *isaac.BlockItemReaders, fromRemotes isaac.RemotesBlockItemReadFunc, networkID base.NetworkID, vs string, errChan chan error, ) *Digester
type DmileDataDoc ¶
func NewDmileDataDoc ¶
func (DmileDataDoc) MarshalBSON ¶
func (doc DmileDataDoc) MarshalBSON() ([]byte, error)
type DmileDesignDoc ¶
func NewDmileDesignDoc ¶
NewDmileDesignDoc get the State of Dmile Design
func (DmileDesignDoc) MarshalBSON ¶
func (doc DmileDesignDoc) MarshalBSON() ([]byte, error)
type Handlers ¶
func NewHandlers ¶
func (*Handlers) Cache ¶
func (hd *Handlers) Cache() currencydigest.Cache
func (*Handlers) Initialize ¶
Click to show internal directories.
Click to hide internal directories.