Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2017 Changes in this version + type Client interface + Do func(req *http.Request) (*http.Response, error) + Get func(url string) (resp *http.Response, err error) + Head func(url string) (resp *http.Response, err error) + Post func(url string, contentType string, body io.Reader) (resp *http.Response, err error) + PostForm func(url string, data url.Values) (resp *http.Response, err error) + type ClientContext interface + GetContext func(ctx context.Context, url string) (resp *http.Response, err error) + HeadContext func(ctx context.Context, url string) (resp *http.Response, err error) + PostContext func(ctx context.Context, url string, contentType string, body io.Reader) (resp *http.Response, err error) + PostFormContext func(ctx context.Context, url string, data url.Values) (resp *http.Response, err error) + func NewContext(client Client) ClientContext + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (_m *MockClient) Do(req *http.Request) (*http.Response, error) + func (_m *MockClient) EXPECT() *MockClientMockRecorder + func (_m *MockClient) Get(url string) (*http.Response, error) + func (_m *MockClient) Head(url string) (*http.Response, error) + func (_m *MockClient) Post(url string, contentType string, body io.Reader) (*http.Response, error) + func (_m *MockClient) PostForm(url string, data url.Values) (*http.Response, error) + type MockClientMockRecorder struct + func (_mr *MockClientMockRecorder) Do(arg0 interface{}) *gomock.Call + func (_mr *MockClientMockRecorder) Get(arg0 interface{}) *gomock.Call + func (_mr *MockClientMockRecorder) Head(arg0 interface{}) *gomock.Call + func (_mr *MockClientMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call + func (_mr *MockClientMockRecorder) PostForm(arg0, arg1 interface{}) *gomock.Call