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