utils

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	Log logging.Logger
	// contains filtered or unexported fields
}

HTTPClient provides client access to the HTTP server in agent.

func NewHTTPClient

func NewHTTPClient(httpAddr string) *HTTPClient

func (*HTTPClient) GET

func (c *HTTPClient) GET(path string) ([]byte, error)

func (*HTTPClient) POST

func (c *HTTPClient) POST(path string, data interface{}) ([]byte, error)

func (*HTTPClient) PUT

func (c *HTTPClient) PUT(path string, data interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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