ipfs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Gateway

type Gateway interface {
	Get(ctx context.Context, resourceID string) ([]byte, error)
	GetReader(ctx context.Context, resourceID string) (io.ReadCloser, error)
}

func NewIpfsGateway

func NewIpfsGateway(credentials []IpfsCredentials) Gateway

type IPFSer

type IPFSer interface {
	IPFS() Gateway
}

func NewIPFSer

func NewIPFSer(getter kv.Getter) IPFSer

type IpfsCredentials

type IpfsCredentials struct {
	GatewayURL    *url.URL `fig:"gateway_url,required"`
	ProjectSecret string   `fig:"project_secret,required"`
	ProjectID     string   `fig:"project_id,required"`
}

Jump to

Keyboard shortcuts

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