httpclient

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

func NewHTTPClient

func NewHTTPClient(client *http.Client, serverURL string) *Client

func (*Client) AddWalletToDataset

func (c *Client) AddWalletToDataset(ctx context.Context, datasetName string, wallet string) (*model.WalletAssignment, error)

func (*Client) CreateDataset

func (c *Client) CreateDataset(ctx context.Context, request dataset.CreateRequest) (*model.Dataset, error)

func (*Client) CreateLocalSource

func (c *Client) CreateLocalSource(ctx context.Context, datasetName string, params datasource.LocalRequest) (*model.Source, error)

func (*Client) CreateSchedule

func (c *Client) CreateSchedule(ctx context.Context, request schedule.CreateRequest) (*model.Schedule, error)

func (*Client) GetFile

func (c *Client) GetFile(ctx context.Context, id uint64) (*model.File, error)

func (*Client) GetFileDeals

func (c *Client) GetFileDeals(ctx context.Context, id uint64) ([]model.Deal, error)

func (*Client) GetSourcePackJobs

func (c *Client) GetSourcePackJobs(ctx context.Context, sourceID uint32, request inspect.GetSourcePackJobsRequest) ([]model.PackJob, error)

func (*Client) ImportWallet

func (c *Client) ImportWallet(ctx context.Context, request wallethandler.ImportRequest) (*model.Wallet, error)

func (*Client) ListSchedulesByDataset added in v0.3.1

func (c *Client) ListSchedulesByDataset(ctx context.Context, datasetName string) ([]model.Schedule, error)

func (*Client) ListSourcesByDataset

func (c *Client) ListSourcesByDataset(ctx context.Context, datasetName string) ([]model.Source, error)

func (*Client) ListWallets added in v0.3.1

func (c *Client) ListWallets(ctx context.Context) ([]model.Wallet, error)

func (*Client) ListWalletsByDataset added in v0.3.1

func (c *Client) ListWalletsByDataset(ctx context.Context, datasetName string) ([]model.Wallet, error)

func (*Client) Pack

func (c *Client) Pack(ctx context.Context, packJobID uint32) ([]model.Car, error)

func (*Client) PrepareToPackFile

func (c *Client) PrepareToPackFile(ctx context.Context, fileID uint64) (int64, error)

func (*Client) PrepareToPackSource

func (c *Client) PrepareToPackSource(ctx context.Context, sourceID uint32) error

func (*Client) PushFile

func (c *Client) PushFile(ctx context.Context, sourceID uint32, fileInfo datasource.FileInfo) (*model.File, error)

type HTTPError

type HTTPError struct {
	Err string `json:"err"`
}

Jump to

Keyboard shortcuts

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