httpclient

package
v0.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClientImpl

func NewHTTPClientImpl(config conn.ConnParams) (*httpClientImpl, error)

func ParseCHException

func ParseCHException(raw string) error

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

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

func (*MockHTTPClient) Exec

func (m *MockHTTPClient) Exec(ctx context.Context, lgr log.Logger, host string, query any) error

Exec mocks base method.

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.

Jump to

Keyboard shortcuts

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