ipfs

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 5 Imported by: 0

README

IPFS upload golang

ipAddr ipfs

    Init("addr").Sh.Add(strings.NewReader("hello world"))

NftStorage ipfs

    AddStorage(strings.NewReader("today is rain"), "token")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStorage added in v1.2.9

func AddStorage(f io.Reader, auth string) (string, error)

Types

type IPFS

type IPFS struct {
	Sh *shell.Shell
}

var sh *shell.Shell

func Init

func Init(addr string) *IPFS

func (*IPFS) Add

func (sh *IPFS) Add(r io.Reader) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL