Documentation ¶
Index ¶
- Variables
- type BufferedConn
- func VMInsertClient(c net.Conn, compressionLevel int) (*BufferedConn, error)
- func VMInsertServer(c net.Conn, compressionLevel int) (*BufferedConn, error)
- func VMSelectClient(c net.Conn, compressionLevel int) (*BufferedConn, error)
- func VMSelectServer(c net.Conn, compressionLevel int) (*BufferedConn, error)
- type Func
Constants ¶
This section is empty.
Variables ¶
var ErrIgnoreHealthcheck = fmt.Errorf("TCP healthcheck - ignore it")
ErrIgnoreHealthcheck means the TCP healthckeck, which must be ignored.
The TCP healthcheck is performed by opening and then immediately closing the connection.
Functions ¶
This section is empty.
Types ¶
type BufferedConn ¶
BufferedConn is a net.Conn with Flush suport.
func VMInsertClient ¶
func VMInsertClient(c net.Conn, compressionLevel int) (*BufferedConn, error)
VMInsertClient performs client-side handshake for vminsert protocol.
compressionLevel is the level used for compression of the data sent to the server. compressionLevel <= 0 means 'no compression'
func VMInsertServer ¶
func VMInsertServer(c net.Conn, compressionLevel int) (*BufferedConn, error)
VMInsertServer performs server-side handshake for vminsert protocol.
compressionLevel is the level used for compression of the data sent to the client. compressionLevel <= 0 means 'no compression'
func VMSelectClient ¶
func VMSelectClient(c net.Conn, compressionLevel int) (*BufferedConn, error)
VMSelectClient performs client-side handshake for vmselect protocol.
compressionLevel is the level used for compression of the data sent to the server. compressionLevel <= 0 means 'no compression'
func VMSelectServer ¶
func VMSelectServer(c net.Conn, compressionLevel int) (*BufferedConn, error)
VMSelectServer performs server-side handshake for vmselect protocol.
compressionLevel is the level used for compression of the data sent to the client. compressionLevel <= 0 means 'no compression'
func (*BufferedConn) Flush ¶
func (bc *BufferedConn) Flush() error
Flush flushes internal write buffers to the underlying conn.