Documentation
¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func NFT(st *currencydigest.Database, contract, idx string) (*types.NFT, error)
- func NFTCollection(st *currencydigest.Database, contract string) (*types.Design, error)
- func NFTCountByCollection(st *currencydigest.Database, contract string) (int64, error)
- func NFTOperators(st *currencydigest.Database, contract, account string) (*types.OperatorsBook, error)
- func NFTsByCollection(st *currencydigest.Database, contract, factHash, offset string, reverse bool, ...) error
- type BlockSession
- type BlockSessioner
- type Digester
- type Handlers
- type NFTBoxDoc
- type NFTCollectionDoc
- type NFTDoc
- type NFTLastIndexDoc
- type NFTOperatorDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathNFTOperators = `/nft/{contract:.*}/account/{address:(?i)` + base.REStringAddressString + `}/operators` // revive:disable-line:line-length-limit HandlerPathNFTCollection = `/nft/{contract:.*}/collection` HandlerPathNFT = `/nft/{contract:.*}/{id:.*}` HandlerPathNFTs = `/nft/{contract:.*}/nfts` HandlerPathNFTCount = `/nft/{contract:.*}/count` )
Functions ¶
func DigestBlock ¶
func NFTCollection ¶
func NFTCountByCollection ¶
func NFTCountByCollection( st *currencydigest.Database, contract string, ) (int64, error)
func NFTOperators ¶
func NFTOperators( st *currencydigest.Database, contract, account string, ) (*types.OperatorsBook, error)
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 BlockSessioner ¶
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 NFTBoxDoc ¶
type NFTBoxDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func (NFTBoxDoc) MarshalBSON ¶
type NFTCollectionDoc ¶
type NFTCollectionDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func NewNFTCollectionDoc ¶
func (NFTCollectionDoc) MarshalBSON ¶
func (doc NFTCollectionDoc) MarshalBSON() ([]byte, error)
type NFTDoc ¶
type NFTDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func (NFTDoc) MarshalBSON ¶
type NFTLastIndexDoc ¶
type NFTLastIndexDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func NewNFTLastIndexDoc ¶
func (NFTLastIndexDoc) MarshalBSON ¶
func (doc NFTLastIndexDoc) MarshalBSON() ([]byte, error)
type NFTOperatorDoc ¶
type NFTOperatorDoc struct { mongodbstorage.BaseDoc // contains filtered or unexported fields }
func NewNFTOperatorDoc ¶
func (NFTOperatorDoc) MarshalBSON ¶
func (doc NFTOperatorDoc) MarshalBSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.