Documentation ¶
Index ¶
- Constants
- func RenameDir(oldDir, newDir string) error
- func SelectIdleFiles(dir string, count uint32) ([]string, error)
- type Bucket
- type Node
- func (n *Node) GetAllPeerId() []string
- func (n *Node) GetPeer(peerid string) (peer.AddrInfo, bool)
- func (n *Node) HasPeer(peerid string) bool
- func (n *Node) RebuildDirs()
- func (n *Node) Run()
- func (n *Node) SavePeer(peerid string, addr peer.AddrInfo)
- func (n *Node) SetPublickey(pubkey []byte) error
- func (n *Node) TaskMgt()
- type ProofFileType
- type RandomList
- type T
Constants ¶
View Source
const ( Active = iota Calculate Missing Recovery )
View Source
const ( Cach_prefix_metadata = "metadata:" //Cach_prefix_report = "report:" Cach_prefix_idle = "idle:" Cach_prefix_idleSiama = "sigmaidle:" Cach_prefix_serviceSiama = "sigmaservice:" // Cach_AggrProof_Reported = "AggrProofReported" Cach_AggrProof_Transfered = "AggrProofTransfered" Cach_IdleChallengeBlock = "ChallengeIdleBlock" Cach_ServiceChallengeBlock = "ChallengeServiceBlock" Cach_prefix_MyLost = "mylost:" Cach_prefix_recovery = "recovery:" Cach_prefix_TargetMiner = "targetminer:" Cach_prefix_File = "file:" Cach_prefix_ParseBlock = "parseblocks" )
View Source
const MaxReplaceFiles = 30
View Source
const P2PResponseOK uint32 = 200
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { confile.Confile logger.Logger cache.Cache sdk.SDK // contains filtered or unexported fields }
func (*Node) GetAllPeerId ¶
func (*Node) RebuildDirs ¶
func (n *Node) RebuildDirs()
func (*Node) SetPublickey ¶
type ProofFileType ¶
type RandomList ¶
Click to show internal directories.
Click to hide internal directories.