ipfs

package
v0.0.0-...-b71db6f Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 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 Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) GetContent

func (c *Client) GetContent(ctx context.Context, cidStr string) ([]byte, error)

func (*Client) PublishIP

func (c *Client) PublishIP(ctx context.Context, ipAddr string) (string, error)

func (*Client) PutContent

func (c *Client) PutContent(ctx context.Context, filename string, content io.Reader) (string, error)

type Config

type Config struct {
	GatewayURL string // the url of ipfs gateway
}

Jump to

Keyboard shortcuts

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