grafana

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCastFromMap

func FindCastFromMap(m map[string]interface{}, find string, cast interface{}) (bool, error)

Types

type Client

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

func NewClient

func NewClient(url string, getApiKeyFn func() ([]byte, error)) (*Client, error)

func (*Client) ApiRequest

func (c *Client) ApiRequest(apiName, verb string, params map[string]interface{}) (string, error)

func (*Client) DeleteDatasource

func (c *Client) DeleteDatasource(apiPath string, params map[string]interface{}) (string, error)

func (*Client) GetDatasource

func (c *Client) GetDatasource(apiPath string, params map[string]interface{}) (string, error)

func (*Client) ListDatasources

func (c *Client) ListDatasources(apiPath string) (string, error)

Jump to

Keyboard shortcuts

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