Documentation
¶
Overview ¶
Package http is a generated GoMock package.
Index ¶
- type HttpClient
- func (self *HttpClient) Delete(path string) error
- func (self *HttpClient) Get(path string, params map[string]string, response interface{}) error
- func (self *HttpClient) Patch(path string, request interface{}, response interface{}) error
- func (self *HttpClient) Post(path string, request interface{}, response interface{}) error
- func (self *HttpClient) Put(path string, request interface{}, response interface{}) error
- type HttpClientConfig
- type HttpClientInterface
- type MockHttpClientInterface
- func (m *MockHttpClientInterface) Delete(arg0 string) error
- func (m *MockHttpClientInterface) EXPECT() *MockHttpClientInterfaceMockRecorder
- func (m *MockHttpClientInterface) Get(arg0 string, arg1 map[string]string, arg2 interface{}) error
- func (m *MockHttpClientInterface) Patch(arg0 string, arg1, arg2 interface{}) error
- func (m *MockHttpClientInterface) Post(arg0 string, arg1, arg2 interface{}) error
- func (m *MockHttpClientInterface) Put(arg0 string, arg1, arg2 interface{}) error
- type MockHttpClientInterfaceMockRecorder
- func (mr *MockHttpClientInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockHttpClientInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHttpClientInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHttpClientInterfaceMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHttpClientInterfaceMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct { ApiKey string ApiSecret string Endpoint string // contains filtered or unexported fields }
func NewHttpClient ¶
func NewHttpClient(config HttpClientConfig) (*HttpClient, error)
func (*HttpClient) Delete ¶
func (self *HttpClient) Delete(path string) error
func (*HttpClient) Get ¶
func (self *HttpClient) Get(path string, params map[string]string, response interface{}) error
func (*HttpClient) Patch ¶ added in v0.0.6
func (self *HttpClient) Patch(path string, request interface{}, response interface{}) error
func (*HttpClient) Post ¶
func (self *HttpClient) Post(path string, request interface{}, response interface{}) error
func (*HttpClient) Put ¶
func (self *HttpClient) Put(path string, request interface{}, response interface{}) error
type HttpClientConfig ¶ added in v0.0.9
type HttpClientInterface ¶
type HttpClientInterface interface { Get(path string, params map[string]string, response interface{}) error Post(path string, request interface{}, response interface{}) error Put(path string, request interface{}, response interface{}) error Delete(path string) error Patch(path string, request interface{}, response interface{}) error }
type MockHttpClientInterface ¶ added in v0.0.4
type MockHttpClientInterface struct {
// contains filtered or unexported fields
}
MockHttpClientInterface is a mock of HttpClientInterface interface.
func NewMockHttpClientInterface ¶ added in v0.0.4
func NewMockHttpClientInterface(ctrl *gomock.Controller) *MockHttpClientInterface
NewMockHttpClientInterface creates a new mock instance.
func (*MockHttpClientInterface) Delete ¶ added in v0.0.4
func (m *MockHttpClientInterface) Delete(arg0 string) error
Delete mocks base method.
func (*MockHttpClientInterface) EXPECT ¶ added in v0.0.4
func (m *MockHttpClientInterface) EXPECT() *MockHttpClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHttpClientInterface) Get ¶ added in v0.0.4
func (m *MockHttpClientInterface) Get(arg0 string, arg1 map[string]string, arg2 interface{}) error
Get mocks base method.
func (*MockHttpClientInterface) Patch ¶ added in v0.0.6
func (m *MockHttpClientInterface) Patch(arg0 string, arg1, arg2 interface{}) error
Patch mocks base method.
func (*MockHttpClientInterface) Post ¶ added in v0.0.4
func (m *MockHttpClientInterface) Post(arg0 string, arg1, arg2 interface{}) error
Post mocks base method.
func (*MockHttpClientInterface) Put ¶ added in v0.0.4
func (m *MockHttpClientInterface) Put(arg0 string, arg1, arg2 interface{}) error
Put mocks base method.
type MockHttpClientInterfaceMockRecorder ¶ added in v0.0.4
type MockHttpClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpClientInterfaceMockRecorder is the mock recorder for MockHttpClientInterface.
func (*MockHttpClientInterfaceMockRecorder) Delete ¶ added in v0.0.4
func (mr *MockHttpClientInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockHttpClientInterfaceMockRecorder) Get ¶ added in v0.0.4
func (mr *MockHttpClientInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockHttpClientInterfaceMockRecorder) Patch ¶ added in v0.0.6
func (mr *MockHttpClientInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockHttpClientInterfaceMockRecorder) Post ¶ added in v0.0.4
func (mr *MockHttpClientInterfaceMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call
Post indicates an expected call of Post.
func (*MockHttpClientInterfaceMockRecorder) Put ¶ added in v0.0.4
func (mr *MockHttpClientInterfaceMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call
Put indicates an expected call of Put.