Documentation ¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func PrescriptionDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)
- func PrescriptionInfo(db *cdigest.Database, contract, hash string) (*types.PrescriptionInfo, error)
- type BlockSession
- type Digester
- type Handlers
- type PrescriptionDesignDoc
- type PrescriptionInfoDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathPrescriptionDesign = `/prescription/{contract:(?i)` + types.REStringAddressString + `}` HandlerPathPrescriptionInfo = `/prescription/{contract:(?i)` + types.REStringAddressString + `}/hash/{prescription_hash:` + types.ReSpecialCh + `}` )
Functions ¶
func DigestBlock ¶
func PrescriptionDesign ¶
func PrescriptionInfo ¶
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 Handlers ¶
func NewHandlers ¶
func (*Handlers) Cache ¶
func (hd *Handlers) Cache() currencydigest.Cache
func (*Handlers) Initialize ¶
type PrescriptionDesignDoc ¶
func NewPrescriptionDesignDoc ¶
NewPrescriptionDesignDoc get the state of prescription Design
func (PrescriptionDesignDoc) MarshalBSON ¶
func (doc PrescriptionDesignDoc) MarshalBSON() ([]byte, error)
type PrescriptionInfoDoc ¶
func NewPrescriptionInfoDoc ¶
func (PrescriptionInfoDoc) MarshalBSON ¶
func (doc PrescriptionInfoDoc) MarshalBSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.