httpwrap

package
v0.0.0-...-a4041df Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package httpwrap is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrap

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

ClientWrap executes HTTP requests.

func New

func New(client *http.Client) *ClientWrap

New creates wrapper for http.Client for handy making requests.

func (*ClientWrap) MakeRequest

func (c *ClientWrap) MakeRequest(url string, headers map[string]string) ([]byte, error)

MakeRequest making request for passed parameters.

type Mockdoer

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

Mockdoer is a mock of doer interface

func NewMockdoer

func NewMockdoer(ctrl *gomock.Controller) *Mockdoer

NewMockdoer creates a new mock instance

func (*Mockdoer) Do

func (m *Mockdoer) Do(req *http.Request) (*http.Response, error)

Do mocks base method

func (*Mockdoer) EXPECT

func (m *Mockdoer) EXPECT() *MockdoerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockdoerMockRecorder

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

MockdoerMockRecorder is the mock recorder for Mockdoer

func (*MockdoerMockRecorder) Do

func (mr *MockdoerMockRecorder) Do(req interface{}) *gomock.Call

Do indicates an expected call of Do

Jump to

Keyboard shortcuts

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