utils

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 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