Versions in this module Expand all Collapse all v1 v1.0.0 Nov 24, 2023 Changes in this version + var ErrBrokenPipe = errors.New("broken low-level pipe") + var ErrCloseClosedSession = errors.New("close closed session") + var ErrDialInterrupt = errors.New("dial interrupt") + var ErrDialTimeout = errors.New("dial timeout") + var ErrHandshake = errors.New("handshake failed") + var ErrHandshakeAck = errors.New("handshake ack failed") + var ErrHandshakeTimeout = errors.New("handshake timeout failed") + var ErrHeartbeatTimeout = errors.New("heartbeat timeout") + var ErrInvalidPacket = errors.New("invalid packet") + func Dial(addr string, opts ...Option) (gira.GatewayClient, error) + type ClientConn struct + func (conn *ClientConn) Close() error + func (conn *ClientConn) Notify(route string, data []byte) error + func (conn *ClientConn) Recv(ctx context.Context) (typ int, route string, reqId uint64, data []byte, err error) + func (conn *ClientConn) Request(route string, reqId uint64, data []byte) error + type Option func(conn *ClientConn) + func WithContext(ctx context.Context) Option + func WithDebugMode(debug bool) Option + func WithDialTimeout(timeout time.Duration) Option + func WithDictionary(dict map[string]uint16) Option + func WithHandshakeTimeout(timeout time.Duration) Option + func WithHandshakeValidator(fn func([]byte) error) Option + func WithHeartbeatInterval(d time.Duration) Option + func WithIsWebsocket(enableWs bool) Option + func WithRSAPublicKey(keyFile string) Option + func WithRecvBacklog(v int) Option + func WithRecvBuffSize(v int) Option + func WithSendBacklog(v int) Option + func WithServerAdd(addr string) Option + func WithTSLConfig(certificate, key string) Option + func WithTSLInsecure(insecureSkipVerify bool) Option + func WithWSPath(path string) Option