Documentation
¶
Index ¶
- type Client
- type QuicClient
- func (qs *QuicClient) Close()
- func (qs *QuicClient) Connect(ctx context.Context) error
- func (qs *QuicClient) GetConnId() string
- func (qs *QuicClient) OnMessageParseHandler(handler func(net.Conn))
- func (qs *QuicClient) OnMessageReceivedHandler(handler func([]byte))
- func (qs *QuicClient) Send(msg []byte) error
- func (qs *QuicClient) SendError(err error)
- type TcpClient
- func (ws *TcpClient) Close()
- func (ws *TcpClient) Connect(ctx context.Context) error
- func (ws *TcpClient) GetConnId() string
- func (ws *TcpClient) OnMessageParseHandler(handler func(net.Conn))
- func (ws *TcpClient) OnMessageReceivedHandler(handler func([]byte))
- func (ws *TcpClient) Send(msg []byte) error
- func (ws *TcpClient) SendError(err error)
- type WsClient
- func (ws *WsClient) Close()
- func (ws *WsClient) Connect(ctx context.Context) error
- func (ws *WsClient) GetConnId() string
- func (ws *WsClient) OnMessageParseHandler(handler func(net.Conn))
- func (ws *WsClient) OnMessageReceivedHandler(handler func([]byte))
- func (ws *WsClient) OnParseMsgHandler(src *os.File)
- func (ws *WsClient) Send(msg []byte) error
- func (ws *WsClient) SendError(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type QuicClient ¶
type QuicClient struct {
// contains filtered or unexported fields
}
func NewQuicClient ¶
func NewQuicClient() *QuicClient
func (*QuicClient) Close ¶
func (qs *QuicClient) Close()
func (*QuicClient) GetConnId ¶
func (qs *QuicClient) GetConnId() string
func (*QuicClient) OnMessageParseHandler ¶
func (qs *QuicClient) OnMessageParseHandler(handler func(net.Conn))
func (*QuicClient) OnMessageReceivedHandler ¶
func (qs *QuicClient) OnMessageReceivedHandler(handler func([]byte))
func (*QuicClient) Send ¶ added in v1.0.17
func (qs *QuicClient) Send(msg []byte) error
func (*QuicClient) SendError ¶
func (qs *QuicClient) SendError(err error)
type TcpClient ¶
type TcpClient struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
func (*TcpClient) OnMessageParseHandler ¶
func (*TcpClient) OnMessageReceivedHandler ¶
type WsClient ¶
type WsClient struct {
// contains filtered or unexported fields
}
func NewWsClient ¶
func (*WsClient) OnMessageParseHandler ¶
func (*WsClient) OnMessageReceivedHandler ¶
func (*WsClient) OnParseMsgHandler ¶
Click to show internal directories.
Click to hide internal directories.