util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFullNodeAPIUsingCredentials

func GetFullNodeAPIUsingCredentials(ctx context.Context, listenAddr, token string) (api.FullNode, jsonrpc.ClientCloser, error)

Types

type APIIpldStore

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

APIIpldStore is required for AMT and HAMT access.

func NewAPIIpldStore

func NewAPIIpldStore(ctx context.Context, api api.FullNode) *APIIpldStore

func (*APIIpldStore) Context

func (ht *APIIpldStore) Context() context.Context

func (*APIIpldStore) Get

func (ht *APIIpldStore) Get(ctx context.Context, c cid.Cid, out interface{}) error

func (*APIIpldStore) Put

func (ht *APIIpldStore) Put(ctx context.Context, v interface{}) (cid.Cid, error)

Jump to

Keyboard shortcuts

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