Documentation ¶
Index ¶
- type Node
- func (n *Node) FindProvs(hash string, maxPeers int) (replications int, err error)
- func (n *Node) GC() error
- func (n *Node) GetSize(hash string) (size int64, err error)
- func (n *Node) LsPin() (<-chan string, error)
- func (n *Node) Pin(hash string) error
- func (n *Node) RepoSize() (int64, error)
- func (n *Node) ReportStats(peerID string, protocolID string, msg []byte) (err error)
- func (n *Node) Unpin(hash string) error
- func (n *Node) Verify() (<-chan string, error)
- type NodeConfArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func CreateNode ¶
func CreateNode(repoPath string, args NodeConfArgs) (node *Node, err error)
CreateNode creates an IPFS node and returns its coreAPI
func (*Node) FindProvs ¶
FindProvs queries the IPFS network for the number of providers hosting a given file
func (*Node) ReportStats ¶
type NodeConfArgs ¶
Click to show internal directories.
Click to hide internal directories.