Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./http_client.go
Generated by this command:
mockgen -source ./http_client.go -package httpclient -destination ./http_client_mock.go
Package httpclient is a generated GoMock package.
Index ¶
- func NewHTTPClientImpl(config conn.ConnParams) (*httpClientImpl, error)
- func ParseCHException(raw string) error
- type HTTPClient
- type MockHTTPClient
- func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
- func (m *MockHTTPClient) Exec(ctx context.Context, lgr log.Logger, host string, query any) error
- func (m *MockHTTPClient) Query(ctx context.Context, lgr log.Logger, host string, query, res any) error
- func (m *MockHTTPClient) QueryStream(ctx context.Context, lgr log.Logger, host string, query any) (io.ReadCloser, error)
- type MockHTTPClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClientImpl ¶
func NewHTTPClientImpl(config conn.ConnParams) (*httpClientImpl, error)
func ParseCHException ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface { Query(ctx context.Context, lgr log.Logger, host string, query interface{}, res interface{}) error QueryStream(ctx context.Context, lgr log.Logger, host string, query interface{}) (io.ReadCloser, error) Exec(ctx context.Context, lgr log.Logger, host string, query interface{}) error }
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) EXPECT ¶
func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPClient) Query ¶
func (m *MockHTTPClient) Query(ctx context.Context, lgr log.Logger, host string, query, res any) error
Query mocks base method.
func (*MockHTTPClient) QueryStream ¶
func (m *MockHTTPClient) QueryStream(ctx context.Context, lgr log.Logger, host string, query any) (io.ReadCloser, error)
QueryStream mocks base method.
type MockHTTPClientMockRecorder ¶
type MockHTTPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.
func (*MockHTTPClientMockRecorder) Exec ¶
func (mr *MockHTTPClientMockRecorder) Exec(ctx, lgr, host, query any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockHTTPClientMockRecorder) Query ¶
func (mr *MockHTTPClientMockRecorder) Query(ctx, lgr, host, query, res any) *gomock.Call
Query indicates an expected call of Query.
func (*MockHTTPClientMockRecorder) QueryStream ¶
func (mr *MockHTTPClientMockRecorder) QueryStream(ctx, lgr, host, query any) *gomock.Call
QueryStream indicates an expected call of QueryStream.
Click to show internal directories.
Click to hide internal directories.