Documentation ¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func Point(st *currencydigest.Database, contract string) (*types.Design, error)
- func PointBalance(st *currencydigest.Database, contract, account string) (*common.Big, error)
- type BlockSession
- type Digester
- type Handlers
- type PointBalanceDoc
- type PointDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathPoint = `/point/{contract:(?i)` + base.REStringAddressString + `}` HandlerPathPointBalance = `/point/{contract:(?i)` + base.REStringAddressString + `}/account/{address:(?i)` + base.REStringAddressString + `}` // revive:disable-line:line-length-limit )
Functions ¶
func DigestBlock ¶
func PointBalance ¶
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 PointBalanceDoc ¶
type PointBalanceDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func NewPointBalanceDoc ¶
func (PointBalanceDoc) MarshalBSON ¶
func (doc PointBalanceDoc) MarshalBSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.