Documentation ¶
Index ¶
- type ObjectMgr
- type StorageMgr
- func (h *StorageMgr) AddNewBlock(b *blockchain.Block)
- func (h *StorageMgr) GetHighestBlockHash() (int, string)
- func (h *StorageMgr) GetLatestBlockHash() (string, int)
- func (h *StorageMgr) ObjectbyAccessPattern()
- func (h *StorageMgr) ObjectbyAccessPatternProc()
- func (h *StorageMgr) ProofStorageProc(pos *dtype.ReqPoStorage, node *dtype.NodeInfo) *dtype.ResPoStorage
- func (h *StorageMgr) RemoveNoAccessObjects()
- func (sm *StorageMgr) SetHttpRouter(m *mux.Router)
- func (h *StorageMgr) Stop()
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectMgr ¶
type ObjectMgr struct {
// contains filtered or unexported fields
}
func (*ObjectMgr) AccessWithExponential ¶
func (c *ObjectMgr) AccessWithExponential(num int, rethashes *[]dbagent.RemoverbleObj) bool
func (*ObjectMgr) AccessWithUniform ¶
func (c *ObjectMgr) AccessWithUniform(num int, rethashes *[]dbagent.RemoverbleObj) bool
func (*ObjectMgr) DeleteNoAccedObjects ¶
func (c *ObjectMgr) DeleteNoAccedObjects()
type StorageMgr ¶
type StorageMgr struct {
// contains filtered or unexported fields
}
func StorageMgrInst ¶
func StorageMgrInst(db_path string) *StorageMgr
func (*StorageMgr) AddNewBlock ¶
func (h *StorageMgr) AddNewBlock(b *blockchain.Block)
func (*StorageMgr) GetHighestBlockHash ¶
func (h *StorageMgr) GetHighestBlockHash() (int, string)
func (*StorageMgr) GetLatestBlockHash ¶
func (h *StorageMgr) GetLatestBlockHash() (string, int)
func (*StorageMgr) ObjectbyAccessPattern ¶
func (h *StorageMgr) ObjectbyAccessPattern()
func (*StorageMgr) ObjectbyAccessPatternProc ¶
func (h *StorageMgr) ObjectbyAccessPatternProc()
func (*StorageMgr) ProofStorageProc ¶
func (h *StorageMgr) ProofStorageProc(pos *dtype.ReqPoStorage, node *dtype.NodeInfo) *dtype.ResPoStorage
func (*StorageMgr) RemoveNoAccessObjects ¶
func (h *StorageMgr) RemoveNoAccessObjects()
func (*StorageMgr) SetHttpRouter ¶
func (sm *StorageMgr) SetHttpRouter(m *mux.Router)
func (*StorageMgr) Stop ¶
func (h *StorageMgr) Stop()
Click to show internal directories.
Click to hide internal directories.