Add git functions & improve grafana functions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tom Neuber 2024-02-16 21:56:27 +01:00
parent 2d08f75545
commit 0fb6e0b6e9
Signed by: tom
GPG key ID: F17EFE4272D89FF6
7 changed files with 579 additions and 16 deletions

View file

@ -1,7 +1,6 @@
package grafana
import (
"bytes"
"context"
"fmt"
"io"
@ -74,7 +73,3 @@ func (c *Client) doRequest(ctx context.Context, method, query string, params url
func (c *Client) get(ctx context.Context, query string, params url.Values) ([]byte, int, error) {
return c.doRequest(ctx, "GET", query, params, nil)
}
func (c *Client) post(ctx context.Context, query string, params url.Values, body []byte) ([]byte, int, error) {
return c.doRequest(ctx, "POST", query, params, bytes.NewBuffer(body))
}