jsonrequest

package
v0.0.0-...-730425d Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request interface {
	Do(method string, endpoint string, requestBody interface{}, jsonResponse interface{}) (StatusCode, error)
}

func NewRequest

func NewRequest(baseUrl string) Request

func NewRequestWithTimeout

func NewRequestWithTimeout(baseUrl string, timeout time.Duration) Request

type RequestClient

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

func (*RequestClient) Do

func (r *RequestClient) Do(method string, endpoint string, requestBody interface{}, jsonResponse interface{}) (StatusCode, error)

type StatusCode

type StatusCode int

Jump to

Keyboard shortcuts

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