Documentation ¶
Overview ¶
Package digest provides api features.
Index ¶
- Variables
- func DigestBlock(ctx context.Context, st *currencydigest.Database, blk base.BlockMap, ...) error
- func LoadStorageData(decoder func(interface{}) error, encs *encoder.Encoders) (*types.Data, int64, string, string, bool, error)
- func LoadStorageDataFromDoc(b []byte, encs *encoder.Encoders) (bson.Raw, interface{}, int64, string, string, bool, error)
- func SotrageDataHistoryByDataKey(st *cdigest.Database, contract, key string, reverse bool, offset string, ...) error
- func StorageData(db *cdigest.Database, contract, key string) (*types.Data, int64, string, string, bool, error)
- func StorageDesign(st *cdigest.Database, contract string) (types.Design, base.State, error)
- type BlockSession
- type Digester
- type Handlers
- type StorageDataDoc
- type StorageDataDocBSONUnMarshaler
- type StorageDesignDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandlerPathStorageDesign = `/storage/{contract:(?i)` + types.REStringAddressString + `}` HandlerPathStorageData = `/storage/{contract:(?i)` + types.REStringAddressString + `}/datakey/{data_key:` + types.ReSpecialCh + `}` HandlerPathStorageHistory = `/storage/{contract:(?i)` + types.REStringAddressString + `}/datakey/{data_key:` + types.ReSpecialCh + `}/history` )
Functions ¶
func DigestBlock ¶
func LoadStorageData ¶
func LoadStorageDataFromDoc ¶
func StorageData ¶
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 StorageDataDoc ¶
func NewStorageDataDoc ¶
func (StorageDataDoc) MarshalBSON ¶
func (doc StorageDataDoc) MarshalBSON() ([]byte, error)
type StorageDesignDoc ¶
func NewStorageDesignDoc ¶
NewStorageDesignDoc get the State of Storage Design
func (StorageDesignDoc) MarshalBSON ¶
func (doc StorageDesignDoc) MarshalBSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.