storage

package
v0.0.0-...-910d698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 NewObjMgr

func NewObjMgr(db dbagent.DBAgent) *ObjectMgr

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()

type Test

type Test struct {
	Start bool `json:"start"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL