Documentation ¶
Overview ¶
Package mock_httputils is a generated GoMock package.
Index ¶
- type MockHTTPClient
- func (m *MockHTTPClient) CloseIdleConnections()
- func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)
- func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
- func (m *MockHTTPClient) Get(url string) (*http.Response, error)
- func (m *MockHTTPClient) Head(url string) (*http.Response, error)
- func (m *MockHTTPClient) Post(url, contentType string, body io.Reader) (*http.Response, error)
- func (m *MockHTTPClient) PostForm(url string, data url.Values) (*http.Response, error)
- type MockHTTPClientMockRecorder
- func (mr *MockHTTPClientMockRecorder) CloseIdleConnections() *gomock.Call
- func (mr *MockHTTPClientMockRecorder) Do(req interface{}) *gomock.Call
- func (mr *MockHTTPClientMockRecorder) Get(url interface{}) *gomock.Call
- func (mr *MockHTTPClientMockRecorder) Head(url interface{}) *gomock.Call
- func (mr *MockHTTPClientMockRecorder) Post(url, contentType, body interface{}) *gomock.Call
- func (mr *MockHTTPClientMockRecorder) PostForm(url, data interface{}) *gomock.Call
- type MockHTTPHandler
- type MockHTTPHandlerMockRecorder
- type MockHTTPServer
- func (m *MockHTTPServer) Close() error
- func (m *MockHTTPServer) EXPECT() *MockHTTPServerMockRecorder
- func (m *MockHTTPServer) ListenAndServe() error
- func (m *MockHTTPServer) ListenAndServeTLS(certFile, keyFile string) error
- func (m *MockHTTPServer) RegisterOnShutdown(f func())
- func (m *MockHTTPServer) Serve(l net.Listener) error
- func (m *MockHTTPServer) ServeTLS(l net.Listener, certFile, keyFile string) error
- func (m *MockHTTPServer) SetKeepAlivesEnabled(v bool)
- func (m *MockHTTPServer) Shutdown(ctx context.Context) error
- type MockHTTPServerMockRecorder
- func (mr *MockHTTPServerMockRecorder) Close() *gomock.Call
- func (mr *MockHTTPServerMockRecorder) ListenAndServe() *gomock.Call
- func (mr *MockHTTPServerMockRecorder) ListenAndServeTLS(certFile, keyFile interface{}) *gomock.Call
- func (mr *MockHTTPServerMockRecorder) RegisterOnShutdown(f interface{}) *gomock.Call
- func (mr *MockHTTPServerMockRecorder) Serve(l interface{}) *gomock.Call
- func (mr *MockHTTPServerMockRecorder) ServeTLS(l, certFile, keyFile interface{}) *gomock.Call
- func (mr *MockHTTPServerMockRecorder) SetKeepAlivesEnabled(v interface{}) *gomock.Call
- func (mr *MockHTTPServerMockRecorder) Shutdown(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHTTPClient ¶
type MockHTTPClient struct {
// contains filtered or unexported fields
}
MockHTTPClient is a mock of HTTPClient interface.
func NewMockHTTPClient ¶
func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient
NewMockHTTPClient creates a new mock instance.
func (*MockHTTPClient) CloseIdleConnections ¶
func (m *MockHTTPClient) CloseIdleConnections()
CloseIdleConnections mocks base method.
func (*MockHTTPClient) EXPECT ¶
func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPClient) Get ¶
func (m *MockHTTPClient) Get(url string) (*http.Response, error)
Get mocks base method.
func (*MockHTTPClient) Head ¶
func (m *MockHTTPClient) Head(url string) (*http.Response, error)
Head mocks base method.
type MockHTTPClientMockRecorder ¶
type MockHTTPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.
func (*MockHTTPClientMockRecorder) CloseIdleConnections ¶
func (mr *MockHTTPClientMockRecorder) CloseIdleConnections() *gomock.Call
CloseIdleConnections indicates an expected call of CloseIdleConnections.
func (*MockHTTPClientMockRecorder) Do ¶
func (mr *MockHTTPClientMockRecorder) Do(req interface{}) *gomock.Call
Do indicates an expected call of Do.
func (*MockHTTPClientMockRecorder) Get ¶
func (mr *MockHTTPClientMockRecorder) Get(url interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockHTTPClientMockRecorder) Head ¶
func (mr *MockHTTPClientMockRecorder) Head(url interface{}) *gomock.Call
Head indicates an expected call of Head.
func (*MockHTTPClientMockRecorder) Post ¶
func (mr *MockHTTPClientMockRecorder) Post(url, contentType, body interface{}) *gomock.Call
Post indicates an expected call of Post.
func (*MockHTTPClientMockRecorder) PostForm ¶
func (mr *MockHTTPClientMockRecorder) PostForm(url, data interface{}) *gomock.Call
PostForm indicates an expected call of PostForm.
type MockHTTPHandler ¶
type MockHTTPHandler struct {
// contains filtered or unexported fields
}
MockHTTPHandler is a mock of HTTPHandler interface.
func NewMockHTTPHandler ¶
func NewMockHTTPHandler(ctrl *gomock.Controller) *MockHTTPHandler
NewMockHTTPHandler creates a new mock instance.
func (*MockHTTPHandler) EXPECT ¶
func (m *MockHTTPHandler) EXPECT() *MockHTTPHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPHandler) ServeHTTP ¶
func (m *MockHTTPHandler) ServeHTTP(arg0 http.ResponseWriter, arg1 *http.Request)
ServeHTTP mocks base method.
type MockHTTPHandlerMockRecorder ¶
type MockHTTPHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPHandlerMockRecorder is the mock recorder for MockHTTPHandler.
func (*MockHTTPHandlerMockRecorder) ServeHTTP ¶
func (mr *MockHTTPHandlerMockRecorder) ServeHTTP(arg0, arg1 interface{}) *gomock.Call
ServeHTTP indicates an expected call of ServeHTTP.
type MockHTTPServer ¶
type MockHTTPServer struct {
// contains filtered or unexported fields
}
MockHTTPServer is a mock of HTTPServer interface.
func NewMockHTTPServer ¶
func NewMockHTTPServer(ctrl *gomock.Controller) *MockHTTPServer
NewMockHTTPServer creates a new mock instance.
func (*MockHTTPServer) EXPECT ¶
func (m *MockHTTPServer) EXPECT() *MockHTTPServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPServer) ListenAndServe ¶
func (m *MockHTTPServer) ListenAndServe() error
ListenAndServe mocks base method.
func (*MockHTTPServer) ListenAndServeTLS ¶
func (m *MockHTTPServer) ListenAndServeTLS(certFile, keyFile string) error
ListenAndServeTLS mocks base method.
func (*MockHTTPServer) RegisterOnShutdown ¶
func (m *MockHTTPServer) RegisterOnShutdown(f func())
RegisterOnShutdown mocks base method.
func (*MockHTTPServer) Serve ¶
func (m *MockHTTPServer) Serve(l net.Listener) error
Serve mocks base method.
func (*MockHTTPServer) ServeTLS ¶
func (m *MockHTTPServer) ServeTLS(l net.Listener, certFile, keyFile string) error
ServeTLS mocks base method.
func (*MockHTTPServer) SetKeepAlivesEnabled ¶
func (m *MockHTTPServer) SetKeepAlivesEnabled(v bool)
SetKeepAlivesEnabled mocks base method.
type MockHTTPServerMockRecorder ¶
type MockHTTPServerMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPServerMockRecorder is the mock recorder for MockHTTPServer.
func (*MockHTTPServerMockRecorder) Close ¶
func (mr *MockHTTPServerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockHTTPServerMockRecorder) ListenAndServe ¶
func (mr *MockHTTPServerMockRecorder) ListenAndServe() *gomock.Call
ListenAndServe indicates an expected call of ListenAndServe.
func (*MockHTTPServerMockRecorder) ListenAndServeTLS ¶
func (mr *MockHTTPServerMockRecorder) ListenAndServeTLS(certFile, keyFile interface{}) *gomock.Call
ListenAndServeTLS indicates an expected call of ListenAndServeTLS.
func (*MockHTTPServerMockRecorder) RegisterOnShutdown ¶
func (mr *MockHTTPServerMockRecorder) RegisterOnShutdown(f interface{}) *gomock.Call
RegisterOnShutdown indicates an expected call of RegisterOnShutdown.
func (*MockHTTPServerMockRecorder) Serve ¶
func (mr *MockHTTPServerMockRecorder) Serve(l interface{}) *gomock.Call
Serve indicates an expected call of Serve.
func (*MockHTTPServerMockRecorder) ServeTLS ¶
func (mr *MockHTTPServerMockRecorder) ServeTLS(l, certFile, keyFile interface{}) *gomock.Call
ServeTLS indicates an expected call of ServeTLS.
func (*MockHTTPServerMockRecorder) SetKeepAlivesEnabled ¶
func (mr *MockHTTPServerMockRecorder) SetKeepAlivesEnabled(v interface{}) *gomock.Call
SetKeepAlivesEnabled indicates an expected call of SetKeepAlivesEnabled.
func (*MockHTTPServerMockRecorder) Shutdown ¶
func (mr *MockHTTPServerMockRecorder) Shutdown(ctx interface{}) *gomock.Call
Shutdown indicates an expected call of Shutdown.