download

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 3 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 wraps the gRPC ManagerService client.

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

NewClient creates a new download client.

func (*Client) AddCompletedDownload7

func (c *Client) AddCompletedDownload7(ctx context.Context, arg0 string, arg1 string, arg2 bool, arg3 string, arg4 string, arg5 int64, arg6 bool) (int64, error)

AddCompletedDownload7 calls the AddCompletedDownload7 RPC.

func (*Client) AddCompletedDownload9_1

func (c *Client) AddCompletedDownload9_1(ctx context.Context, arg0 string, arg1 string, arg2 bool, arg3 string, arg4 string, arg5 int64, arg6 bool, arg7 int64, arg8 int64) (int64, error)

AddCompletedDownload9_1 calls the AddCompletedDownload9_1 RPC.

func (*Client) Enqueue

func (c *Client) Enqueue(ctx context.Context, arg0 int64) (int64, error)

Enqueue calls the Enqueue RPC.

func (*Client) GetMaxBytesOverMobile

func (c *Client) GetMaxBytesOverMobile(ctx context.Context, arg0 int64) (int64, error)

GetMaxBytesOverMobile calls the GetMaxBytesOverMobile RPC.

func (*Client) GetMimeTypeForDownloadedFile

func (c *Client) GetMimeTypeForDownloadedFile(ctx context.Context, arg0 int64) (string, error)

GetMimeTypeForDownloadedFile calls the GetMimeTypeForDownloadedFile RPC.

func (*Client) GetRecommendedMaxBytesOverMobile

func (c *Client) GetRecommendedMaxBytesOverMobile(ctx context.Context, arg0 int64) (int64, error)

GetRecommendedMaxBytesOverMobile calls the GetRecommendedMaxBytesOverMobile RPC.

func (*Client) GetUriForDownloadedFile

func (c *Client) GetUriForDownloadedFile(ctx context.Context, arg0 int64) (int64, error)

GetUriForDownloadedFile calls the GetUriForDownloadedFile RPC.

func (*Client) OpenDownloadedFile

func (c *Client) OpenDownloadedFile(ctx context.Context, arg0 int64) (int64, error)

OpenDownloadedFile calls the OpenDownloadedFile RPC.

func (*Client) Query

func (c *Client) Query(ctx context.Context, arg0 int64) (int64, error)

Query calls the Query RPC.

func (*Client) Remove

func (c *Client) Remove(ctx context.Context, arg0 int64) (int32, error)

Remove calls the Remove RPC.

Jump to

Keyboard shortcuts

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