ipfsclient

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 5 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 interface {
	Get(ctx context.Context, path string) (io.ReadCloser, error)
}

Client is a simplified IPFS interface.

type Gateway

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

Gateway is a Client that fetches through an IPFS HTTP gateway.

func NewGateway

func NewGateway(base string) (*Gateway, error)

func (*Gateway) Get

func (g *Gateway) Get(ctx context.Context, path string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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