util

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorResponseString added in v1.2.0

func ErrorResponseString(err error) string

ErrorResponseString will return OpenAPI's model error (the original error, not the one that's wrapped by OpenAPI)

func HandleErrorAndExit

func HandleErrorAndExit(err error)

func WaitForAsyncTaskDone added in v1.2.0

func WaitForAsyncTaskDone(ctx context.Context, taskID string, client *sdk.APIClient) (sdk.GetTaskStatusResponse, error)

WaitForAsyncTaskDone waits for async tasks with ID `taskID` to be done, meaning not in `in_progress` or `pending` results. It then returns the last GetTaskStatusResponse response (the one with the complete results)

Types

type AssetTransfersConfig

type AssetTransfersConfig struct {
	ServerURL string
	Token     string
}

func InitAPIClient

func InitAPIClient() (*sdk.APIClient, *AssetTransfersConfig, error)

Jump to

Keyboard shortcuts

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