rest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Client for Coralogix API

func NewRestClient

func NewRestClient(url string, apiKey string) *Client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, path string) (string, error)

Delete executes DELETE request to Coralogix API

func (*Client) Get

func (c *Client) Get(ctx context.Context, path string) (string, error)

Get executes GET request to Coralogix API

func (*Client) Post

func (c *Client) Post(ctx context.Context, path, contentType, body string) (string, error)

Post executes POST request to Coralogix API

func (*Client) Put

func (c *Client) Put(ctx context.Context, path, contentType, body string) (string, error)

Put executes PUT request to Coralogix API

func (*Client) Request

func (c *Client) Request(ctx context.Context, method, path, contentType string, body interface{}) (string, error)

Request executes request to Coralogix API

Jump to

Keyboard shortcuts

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