utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVER_URL         = "localhost:8001"
	TEMPLATE_ROOT_PATH = "templates"
	NON_VERBOSE        = "NON_VERBOSE"
)

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(username, apiKey string) *httpClient

func ReadTestFixtures

func ReadTestFixtures(fileName string) (*bytes.Buffer, error)

Types

type HttpClient

type HttpClient interface {
	DoRawHttpRequest(path string, requestType string, requestBody *bytes.Buffer) ([]byte, error)
	GenerateRequestBody(templateData interface{}) (*bytes.Buffer, error)
	HasErrors(body map[string]interface{}) error
	CheckForHttpResponseErrors(data []byte) error
}

Jump to

Keyboard shortcuts

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