web3_storage

package
v0.0.0-...-86cf879 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Web3Storage

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

func New

func New() (*Web3Storage, error)

func (*Web3Storage) Close

func (a *Web3Storage) Close() error

func (*Web3Storage) Get

func (a *Web3Storage) Get(ctx context.Context, cidStr string) ([]byte, error)

func (*Web3Storage) GetByW3sClient

func (a *Web3Storage) GetByW3sClient(ctx context.Context, cidStr string, key []byte) (data []byte, err error)
func (a *Web3Storage) GetByW3sLink(cid string, filename string, key []byte) ([]byte, error)

func (*Web3Storage) Put

func (a *Web3Storage) Put(ctx context.Context, data []byte) (cid string, err error)

Jump to

Keyboard shortcuts

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