Documentation
¶
Index ¶
- Variables
- func HandleError(w http.ResponseWriter, err error)
- func NewErrDataParse(err string, data string) error
- func NewErrorWithCode(err string, code int) error
- func Post(ctx context.Context, dsn string, query string, postBody io.Reader, ...) ([]byte, error)
- func PostGzip(ctx context.Context, dsn string, query string, postBody io.Reader, ...) ([]byte, error)
- func Query(ctx context.Context, dsn string, query string, opts Options) ([]byte, error)
- func ReadUvarint(array []byte) (uint64, int, error)
- func Reader(ctx context.Context, dsn string, query string, opts Options) (io.ReadCloser, error)
- type ErrDataParse
- type ErrorWithCode
- type Options
- type TestHandler
- type TestRequest
- type TestServer
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 HandleError ¶ added in v0.11.6
func HandleError(w http.ResponseWriter, err error)
func NewErrDataParse ¶ added in v0.11.6
func NewErrorWithCode ¶ added in v0.12.0
Types ¶
type ErrDataParse ¶ added in v0.11.6
type ErrDataParse struct {
// contains filtered or unexported fields
}
func (*ErrDataParse) Error ¶ added in v0.11.6
func (e *ErrDataParse) Error() string
func (*ErrDataParse) PrependDescription ¶ added in v0.11.6
func (e *ErrDataParse) PrependDescription(test string)
type ErrorWithCode ¶ added in v0.12.0
type ErrorWithCode struct { Code int // error code // contains filtered or unexported fields }
func (*ErrorWithCode) Error ¶ added in v0.12.0
func (e *ErrorWithCode) Error() string
type TestHandler ¶ added in v0.3.0
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
func NewTestServer ¶ added in v0.3.0
func NewTestServer() *TestServer
func (*TestServer) Requests ¶ added in v0.3.0
func (srv *TestServer) Requests() []TestRequest
Click to show internal directories.
Click to hide internal directories.