client

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 5 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
}

func GetExecutorClient

func GetExecutorClient(executorPort string) (*Client, error)

GetExecutorClient returns executor client

func (*Client) GetTaskById

func (c *Client) GetTaskById(ctx context.Context, id string) (*pbTask.FLTask, error)

GetTaskById gets task by id through executor server

func (*Client) ListTask

func (c *Client) ListTask(ctx context.Context, rPubkeyStr, ePubkeyStr, status string, start, end,
	limit int64) (ts *pbTask.FLTasks, err error)

ListTask lists tasks by requester or executor's public key hex string support listing tasks a requester published or tasks an executor involved status is task status to search only task published after "start" before "end" will be listed limit is the maximum number of tasks to response

Jump to

Keyboard shortcuts

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