client

package
v0.0.0-...-10ec836 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHttpClient

type IHttpClient interface {
	GET(urlStr string, v interface{}) error
	PUT(urlStr string, body io.Reader, v interface{}) error
	POST(urlStr string, body io.Reader, v interface{}) error
	DELETE(urlStr string, body io.Reader) error
}

func NewHttpClient

func NewHttpClient(host, baseUrlPath, username, password string, log ILogger, insecure bool, localCertFile, userAgent string, httpClient *http.Client) (IHttpClient, error)

type ILogger

type ILogger interface {
	Print(v ...interface{})
}

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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