lotusclient

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 12 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 struct {
	// contains filtered or unexported fields
}

Client provides access to Lotus for importing deal data.

func New

func New(maddr string, authToken string, connRetries int, fakeMode bool) (*Client, error)

New returns a new *LotusClient.

func (*Client) Close

func (c *Client) Close() error

Close the client.

func (*Client) CurrentSealingSectors added in v0.0.5

func (c *Client) CurrentSealingSectors() (int, error)

CurrentSealingSectors returns the total number of sectors considered to be in sealing.

func (*Client) HealthCheck

func (c *Client) HealthCheck() error

HealthCheck checks if the lotus client is healthy enough so bidbot can participate in bidding.

func (*Client) ImportData

func (c *Client) ImportData(pcid cid.Cid, file string) error

ImportData imports deal data into Lotus.

type LotusClient

type LotusClient interface {
	io.Closer
	HealthCheck() error
	CurrentSealingSectors() (int, error)
	ImportData(pcid cid.Cid, file string) error
}

LotusClient provides access to Lotus for importing deal data.

Jump to

Keyboard shortcuts

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