Documentation ¶
Index ¶
- Constants
- type ChunkInfo
- func (ci *ChunkInfo) CancelFindChunkInfo(rootCid boson.Address)
- func (ci *ChunkInfo) DelDiscover(rootCid boson.Address)
- func (ci *ChunkInfo) DelFile(rootCid boson.Address) bool
- func (ci *ChunkInfo) DelPyramid(rootCid boson.Address) bool
- func (ci *ChunkInfo) FindChunkInfo(ctx context.Context, authInfo []byte, rootCid boson.Address, ...) bool
- func (ci *ChunkInfo) GetChunkInfo(rootCid boson.Address, cid boson.Address) []aco.Route
- func (ci *ChunkInfo) GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
- func (ci *ChunkInfo) GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
- func (ci *ChunkInfo) GetChunkPyramid(rootCid boson.Address) []*PyramidCidNum
- func (ci *ChunkInfo) GetFileList(overlay boson.Address) (fileListInfo map[string]*aurora.FileInfo, rootList []boson.Address)
- func (ci *ChunkInfo) Init(ctx context.Context, authInfo []byte, rootCid boson.Address) bool
- func (ci *ChunkInfo) InitChunkInfo() error
- func (ci *ChunkInfo) IsDiscover(rootCid boson.Address) bool
- func (ci *ChunkInfo) Metrics() []prometheus.Collector
- func (ci *ChunkInfo) OnChunkTransferred(cid, rootCid boson.Address, overlay, target boson.Address) error
- func (ci *ChunkInfo) Protocol() p2p.ProtocolSpec
- type Interface
- type Pull
- type PyramidCidNum
- type Response
- type RootCIDResponse
Constants ¶
View Source
const ( PullMax = 200 PullingMax = 10 PullerMax = 1000 )
View Source
const ( TimeOut = 30 Time = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkInfo ¶
type ChunkInfo struct {
// contains filtered or unexported fields
}
ChunkInfo
func New ¶
func New(addr boson.Address, streamer p2p.Streamer, logger logging.Logger, traversal traversal.Traverser, storer storage.StateStorer, route routetab.RouteTab, oracleChain oracle.Resolver) *ChunkInfo
New
func (*ChunkInfo) CancelFindChunkInfo ¶
CancelFindChunkInfo
func (*ChunkInfo) DelDiscover ¶ added in v1.0.9
func (*ChunkInfo) FindChunkInfo ¶
func (ci *ChunkInfo) FindChunkInfo(ctx context.Context, authInfo []byte, rootCid boson.Address, overlays []boson.Address) bool
FindChunkInfo
func (*ChunkInfo) GetChunkInfo ¶
GetChunkInfo
func (*ChunkInfo) GetChunkInfoDiscoverOverlays ¶
func (ci *ChunkInfo) GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
func (*ChunkInfo) GetChunkInfoServerOverlays ¶
func (ci *ChunkInfo) GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay
func (*ChunkInfo) GetChunkPyramid ¶
func (ci *ChunkInfo) GetChunkPyramid(rootCid boson.Address) []*PyramidCidNum
func (*ChunkInfo) GetFileList ¶
func (*ChunkInfo) InitChunkInfo ¶
func (*ChunkInfo) Metrics ¶
func (ci *ChunkInfo) Metrics() []prometheus.Collector
func (*ChunkInfo) OnChunkTransferred ¶
func (ci *ChunkInfo) OnChunkTransferred(cid, rootCid boson.Address, overlay, target boson.Address) error
OnChunkTransferred
func (*ChunkInfo) Protocol ¶
func (ci *ChunkInfo) Protocol() p2p.ProtocolSpec
type Interface ¶
type Interface interface { FindChunkInfo(ctx context.Context, authInfo []byte, rootCid boson.Address, overlays []boson.Address) bool GetChunkInfo(rootCid boson.Address, cid boson.Address) []aco.Route GetChunkInfoDiscoverOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay GetChunkInfoServerOverlays(rootCid boson.Address) []aurora.ChunkInfoOverlay CancelFindChunkInfo(rootCid boson.Address) OnChunkTransferred(cid boson.Address, rootCid boson.Address, overlays, target boson.Address) error Init(ctx context.Context, authInfo []byte, rootCid boson.Address) bool GetChunkPyramid(rootCid boson.Address) []*PyramidCidNum IsDiscover(rootCid boson.Address) bool GetFileList(overlay boson.Address) (fileListInfo map[string]*aurora.FileInfo, rootList []boson.Address) DelFile(rootCid boson.Address) bool DelDiscover(rootCid boson.Address) DelPyramid(rootCid boson.Address) bool }
type PyramidCidNum ¶
type Response ¶
type Response struct { StatusCode int `json:"code"` Message string `json:"msg"` Body RootCIDResponse `json:"data"` }
type RootCIDResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.