Documentation ¶
Index ¶
- Constants
- type Reader
- func (r *Reader) Bool() (bool, error)
- func (r *Reader) Buffered() int
- func (r *Reader) Bytes() ([]byte, error)
- func (r *Reader) Date() (time.Time, error)
- func (r *Reader) DateTime() (time.Time, error)
- func (r *Reader) Float32() (float32, error)
- func (r *Reader) Float64() (float64, error)
- func (r *Reader) Int16() (int16, error)
- func (r *Reader) Int32() (int32, error)
- func (r *Reader) Int64() (int64, error)
- func (r *Reader) Int8() (int8, error)
- func (r *Reader) Read(buf []byte) (int, error)
- func (r *Reader) String() (string, error)
- func (r *Reader) UUID(b []byte) error
- func (r *Reader) Uint16() (uint16, error)
- func (r *Reader) Uint32() (uint32, error)
- func (r *Reader) Uint64() (uint64, error)
- func (r *Reader) Uint8() (uint8, error)
- func (r *Reader) Uvarint() (uint64, error)
- func (r *Reader) WithCompression(fn func() error) error
- type ServerInfo
- type Writer
- func (w *Writer) Bool(flag bool)
- func (w *Writer) Bytes(b []byte)
- func (w *Writer) Date(tm time.Time)
- func (w *Writer) DateTime(tm time.Time)
- func (w *Writer) Float32(num float32)
- func (w *Writer) Float64(num float64)
- func (w *Writer) Flush() (err error)
- func (w *Writer) Int16(num int16)
- func (w *Writer) Int32(num int32)
- func (w *Writer) Int64(num int64)
- func (w *Writer) Int8(num int8)
- func (w *Writer) String(s string)
- func (w *Writer) UUID(b []byte)
- func (w *Writer) Uint16(num uint16)
- func (w *Writer) Uint32(num uint32)
- func (w *Writer) Uint64(num uint64)
- func (w *Writer) Uint8(num uint8)
- func (w *Writer) Uvarint(num uint64)
- func (w *Writer) WithCompression(fn func() error)
- func (w *Writer) Write(b []byte)
Constants ¶
View Source
const ( ClientHello = 0 ClientQuery = 1 ClientData = 2 ClientCancel = 3 ClientPing = 4 ClientTablesStatus = 5 ClientKeepAlive = 6 )
View Source
const ( CompressionDisabled = 0 CompressionEnabled = 1 )
View Source
const ( ServerHello = 0 ServerData = 1 ServerException = 2 ServerProgress = 3 ServerPong = 4 ServerEndOfStream = 5 ServerProfileInfo = 6 ServerTotals = 7 ServerExtremes = 8 ServerTablesStatus = 9 ServerLog = 10 ServerTableColumns = 11 )
View Source
const ( QueryNo = 0 QueryInitial = 1 QuerySecondary = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) WithCompression ¶
type ServerInfo ¶
func (*ServerInfo) ReadFrom ¶
func (srv *ServerInfo) ReadFrom(rd *Reader) (err error)
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WithCompression ¶
Click to show internal directories.
Click to hide internal directories.