nftstorage

package
v0.0.0-...-44f1c0e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NftstorageClient

type NftstorageClient struct {
	HttpClient http.Client
	BaseUrl    string
	ApiKey     string
}

NftstorageClient struct to hold client

func NewClientFromEnvironment

func NewClientFromEnvironment() NftstorageClient

NewClientFromEnvironment create new nftkeyme client using env vars

func (NftstorageClient) IpfsAdd

func (client NftstorageClient) IpfsAdd(filePath string) (*StoreResponse, error)

type StoreResponse

type StoreResponse struct {
	Value StoreResponseValue `json:"value"`
}

type StoreResponseValue

type StoreResponseValue struct {
	Pin StoreResponseValuePin `json:"pin"`
}

type StoreResponseValuePin

type StoreResponseValuePin struct {
	CID string `json:"cid"`
}

Jump to

Keyboard shortcuts

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