Documentation ¶
Index ¶
- type Web3Storage
- func (a *Web3Storage) Close() error
- func (a *Web3Storage) Get(ctx context.Context, cidStr string) ([]byte, error)
- 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 (a *Web3Storage) Put(ctx context.Context, data []byte) (cid string, err error)
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) GetByW3sClient ¶
func (*Web3Storage) GetByW3sLink ¶
Click to show internal directories.
Click to hide internal directories.