Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDBTestClient ¶
MakeDBTestClient returns ClickHouse HTTP Server client used in tests.
func MakeNativeTestClient ¶
func MakeNativeTestClient(ctx context.Context, config common.TestClientConfig) (*ch.Client, error)
MakeNativeTestClient returns ClickHouse Native Server client used in tests.
Types ¶
type Engine ¶
type Engine struct { common.EngineConfig // contains filtered or unexported fields }
func (*Engine) HandleConnection ¶
func (*Engine) InitializeConnection ¶
type TestServer ¶
type TestServer struct {
// contains filtered or unexported fields
}
TestServer is a ClickHouse test server that allows to handle basic HTTP and ClickHouse Native connections.
func NewTestServer ¶
func NewTestServer(config common.TestServerConfig, opts ...TestServerOption) (*TestServer, error)
NewTestServer returns a new instance of a test ClickHouse server.
func (*TestServer) Serve ¶
func (s *TestServer) Serve() error
type TestServerOption ¶
type TestServerOption func(*TestServer)
TestServerOption allows setting test server options.
func WithClickHouseHTTPProtocol ¶
func WithClickHouseHTTPProtocol() TestServerOption
WithClickHouseHTTPProtocol specify the HTTP ClickHouse Protocol for test TestServer.
func WithClickHouseNativeProtocol ¶
func WithClickHouseNativeProtocol() TestServerOption
WithClickHouseNativeProtocol specify the Native Protocol for test TestServer.
Click to show internal directories.
Click to hide internal directories.