Documentation
¶
Index ¶
- type Client
- func (c *Client) CancelQuery(ctx context.Context) (err error)
- func (c *Client) Close() error
- func (c *Client) Conn() net.Conn
- func (c *Client) Flush() error
- func (c *Client) Hello(ctx context.Context) (err error)
- func (c *Client) NextPacket(ctx context.Context) (tp click.ServerPacket, err error)
- func (c *Client) RecvBlock(ctx context.Context, compr bool) (b *click.Block, err error)
- func (c *Client) RecvException(ctx context.Context) (err error)
- func (c *Client) RecvProfileInfo(context.Context) (p click.ProfileInfo, err error)
- func (c *Client) RecvProgress(context.Context) (p click.Progress, err error)
- func (c *Client) SendBlock(ctx context.Context, b *click.Block, compr bool) (err error)
- func (c *Client) SendPing(ctx context.Context) (err error)
- func (c *Client) SendQuery(ctx context.Context, q *click.Query) (_ click.QueryMeta, err error)
- type Decoder
- func (d *Decoder) Bool() (x bool, err error)
- func (d *Decoder) Bytes() (x []byte, err error)
- func (d *Decoder) Int8() (x int8, err error)
- func (d *Decoder) Int16() (x int16, err error)
- func (d *Decoder) Int32() (x int32, err error)
- func (d *Decoder) Int64() (x int64, err error)
- func (d *Decoder) Read(p []byte) (int, error)
- func (d *Decoder) ReadByte() (b byte, err error)
- func (d *Decoder) ReadFixed(n int) (x []byte, err error)
- func (d *Decoder) ReadFull(p []byte) (int, error)
- func (d *Decoder) ReadString() (x []byte, err error)
- func (d *Decoder) ReadUvarint() (x []byte, err error)
- func (d *Decoder) SetCompressed(c bool)
- func (d *Decoder) String() (x string, err error)
- func (d *Decoder) UInt8() (x uint8, err error)
- func (d *Decoder) UInt16() (x uint16, err error)
- func (d *Decoder) UInt32() (x uint32, err error)
- func (d *Decoder) UInt64() (x uint64, err error)
- func (d *Decoder) Uvarint() (_ int, err error)
- func (d *Decoder) Uvarint64() (_ uint64, err error)
- type DumpConn
- type Encoder
- func (e *Encoder) Bool(x bool) (err error)
- func (e *Encoder) Flush() error
- func (e *Encoder) Int8(x int8) (err error)
- func (e *Encoder) Int16(x int16) (err error)
- func (e *Encoder) Int32(x int32) (err error)
- func (e *Encoder) Int64(x int64) (err error)
- func (e *Encoder) RawString(x []byte) (err error)
- func (e *Encoder) SetCompressed(c bool) (err error)
- func (e *Encoder) String(x string) (err error)
- func (e *Encoder) UInt8(x uint8) (err error)
- func (e *Encoder) UInt16(x uint16) (err error)
- func (e *Encoder) UInt32(x uint32) (err error)
- func (e *Encoder) UInt64(x uint64) (err error)
- func (e *Encoder) Uvarint(x int) (err error)
- func (e *Encoder) Uvarint64(x uint64) (err error)
- func (e *Encoder) Write(p []byte) (int, error)
- type Flusher
- type Server
- func (c *Server) Close() error
- func (c *Server) Conn() net.Conn
- func (c *Server) Flush() error
- func (c *Server) Hello(ctx context.Context) error
- func (c *Server) NextPacket(ctx context.Context) (pk click.ClientPacket, err error)
- func (c *Server) RecvBlock(ctx context.Context, compr bool) (b *click.Block, err error)
- func (c *Server) RecvQuery(ctx context.Context) (q *click.Query, err error)
- func (c *Server) SendBlock(ctx context.Context, b *click.Block, compr bool) (err error)
- func (c *Server) SendEndOfStream(ctx context.Context) (err error)
- func (c *Server) SendException(ctx context.Context, exc error) (err error)
- func (c *Server) SendProfileInfo(ctx context.Context, p click.ProfileInfo) (err error)
- func (c *Server) SendProgress(ctx context.Context, p click.Progress) (err error)
- func (c *Server) SendQueryMeta(ctx context.Context, meta click.QueryMeta, compr bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// server response
Server click.Agent
TimeZone string
// client request
Client click.Agent
Credentials click.Credentials
// contains filtered or unexported fields
}
func (*Client) NextPacket ¶
func (c *Client) NextPacket(ctx context.Context) (tp click.ServerPacket, err error)
func (*Client) RecvProfileInfo ¶
func (*Client) RecvProgress ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func (*Decoder) ReadString ¶
func (*Decoder) ReadUvarint ¶
func (*Decoder) SetCompressed ¶
type DumpConn ¶
func NewDumpConn ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func (*Encoder) SetCompressed ¶
type Server ¶
type Server struct {
Auth func(context.Context, *Server) error
// server response
Server click.Agent
TimeZone string
// client request
Client click.Agent
Credentials click.Credentials
// contains filtered or unexported fields
}
func (*Server) NextPacket ¶
func (*Server) SendException ¶
func (*Server) SendProfileInfo ¶
func (*Server) SendProgress ¶
Click to show internal directories.
Click to hide internal directories.