client

package
v0.0.0-...-99b5458 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 14 Imported by: 1

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 NewClient

func NewClient(opts Options) (*Client, error)

func (*Client) Query

func (c *Client) Query(method string, path string, data interface{}) ([]byte, error)

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(response models.ErrorResponse, statusCode int) Error

func (Error) Code

func (e Error) Code() string

func (Error) Error

func (e Error) Error() string

func (Error) Temporary

func (e Error) Temporary() bool

type Options

type Options struct {
	Domain *string
	Token  *string

	XDatabricksAzureWorkspaceResourceId *string
	XDatabricksAzureSPManagementToken   *string

	MaxRetries         int
	RetryDelay         time.Duration
	RateLimitPerSecond int
}

Jump to

Keyboard shortcuts

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