http

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiBaseUrl = "http://localhost:8000/agent-api"

Functions

This section is empty.

Types

type Authorize

type Authorize struct {
	Token    string `json:"token"`
	Hostname string `json:"hostname"`
}

type AuthorizeSuccess

type AuthorizeSuccess struct {
	Token string `json:"token"`
}

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Authorize

func (http *Client) Authorize(payload Authorize) (*resty.Response, error)

func (*Client) Payload

func (http *Client) Payload(payload *pb.MetricsPayload) (*resty.Response, error)

Jump to

Keyboard shortcuts

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