freezer

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 7 Imported by: 0

README

Freezer

Freezer is a toolkit to help upload your content to ipfs and arweave.

Install

go get github.com/4ever9/freezer

Usage



// 0. Pin file to ipfs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Freezer

type Freezer struct {
	PinataToken string
}

func New

func New(PinataToken string) *Freezer

func (*Freezer) PinERC1155

func (f *Freezer) PinERC1155(content map[string]interface{}, file io.Reader) (string, string, error)

func (*Freezer) PinFile

func (f *Freezer) PinFile(file io.Reader) (string, error)

func (*Freezer) PinJson

func (f *Freezer) PinJson(content map[string]interface{}) (string, error)

type PinataResponse

type PinataResponse struct {
	IpfsHash string
}

Jump to

Keyboard shortcuts

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