client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHttpClient = http.DefaultClient

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiURL, apiKeyOrBasicAuth string, client *http.Client) *Client

func (*Client) Get

func (r *Client) Get(ctx context.Context, query string, params url.Values) ([]byte, int, error)

func (*Client) Render

func (r *Client) Render(ctx context.Context, dashboard string, from, to time.Time, panelId, width, height int) ([]byte, int, error)

Render renders a panel. If panelId is set to 0, the entire dashboard is rendered.

Jump to

Keyboard shortcuts

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