clickhouse

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClickHouseResponse = errors.New("Malformed response from clickhouse")
View Source
var ErrUvarintOverflow = errors.New("ReadUvarint: varint overflows a 64-bit integer")
View Source
var ErrUvarintRead = errors.New("ReadUvarint: Malformed array")

Functions

func Escape

func Escape(s string) string

func Post added in v0.3.0

func Post(ctx context.Context, dsn string, query string, postBody io.Reader, timeout time.Duration) ([]byte, error)

func PostGzip added in v0.3.0

func PostGzip(ctx context.Context, dsn string, query string, postBody io.Reader, timeout time.Duration) ([]byte, error)

func Query

func Query(ctx context.Context, dsn string, query string, timeout time.Duration) ([]byte, error)

func ReadUvarint added in v0.3.0

func ReadUvarint(array []byte) (uint64, int, error)

Types

type TestHandler added in v0.3.0

type TestHandler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*TestHandler) ServeHTTP added in v0.3.0

func (h *TestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TestRequest added in v0.3.0

type TestRequest struct {
	Query []byte
}

type TestServer added in v0.3.0

type TestServer struct {
	*httptest.Server
	// contains filtered or unexported fields
}

func NewTestServer added in v0.3.0

func NewTestServer() *TestServer

func (*TestServer) Requests added in v0.3.0

func (srv *TestServer) Requests() []TestRequest

Jump to

Keyboard shortcuts

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