Documentation
¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func TimestampDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)
- func TimestampItem(db *cdigest.Database, contract, project string, idx uint64) (types.Item, base.State, error)
- type BlockSession
- type DesignDoc
- type Digester
- type Handlers
- type ItemDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathTimeStampDesign = `/timestamp/{contract:(?i)` + types.REStringAddressString + `}` HandlerPathTimeStampItem = `/timestamp/{contract:(?i)` + types.REStringAddressString + `}/project/{project_id:` + types.ReSpecialCh + `}/idx/{timestamp_idx:[0-9]+}` )
Functions ¶
func DigestBlock ¶
func TimestampDesign ¶
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 DesignDoc ¶
func NewDesignDoc ¶
NewDesignDoc get the State of TimeStamp Design
func (DesignDoc) MarshalBSON ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.