Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG = false
DEBUG allows more detailed working to be exposed through the terminal.
Functions ¶
func ConnectToIPFSForDownload ¶
ConnectToIPFSForDownload will connect to a IPFS instance, based on the hash name of file on IPFS. It returns a reference to an io.Reader with IPFS instance information
Types ¶
type ConfigIPFS ¶
type ConfigIPFS struct { HostName string `json:"hostName"` Port string `json:"port"` Path string `json:"path"` ChunkSize string `json:"chunkSize"` }
ConfigIPFS defines the variables and types.
func LoadIPFSProperty ¶
func LoadIPFSProperty(fullFileName string) (ConfigIPFS, error)
LoadIPFSProperty reads and parses the JSON file. that contain a IPFS instance's property. and returns all the properties as an object.
type IPFSdata ¶
IPFSdata structure for ipfs data
func ConnectToIPFSStorj ¶
ConnectToIPFSStorj will connect to a IPFS instance, based on the read property from an external file. It returns a reference to an io.Reader with IPFS instance information.
Click to show internal directories.
Click to hide internal directories.