Documentation ¶
Index ¶
- Variables
- func AddBytes(data []byte) (string, error)
- func AddFile(filepath string) (string, error)
- func AddString(a string) (string, error)
- func GetFile(hash string, extension string) (string, error)
- func GetString(hash string) (string, error)
- func ReadfromFile(filepath string) ([]byte, error)
- func RetrieveShell() *shell.Shell
- func SetConsts(fileLength int)
- func SetPath(newPath string)
Constants ¶
This section is empty.
Variables ¶
View Source
var IpfsFileLength int
IpfsFileLength defines the length of the ipfs filename
Functions ¶
func GetFile ¶
GetFile gets back the contents of an ipfs hash and stores them in the required extension format. This has to match with the extension format that the original file had or else one would not be able to view the file
func ReadfromFile ¶
ReadfromFile reads a pdf and returns the datastream
func RetrieveShell ¶
RetrieveShell retrieves the ipfs shell for use by other functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.