Documentation ¶
Index ¶
- func MakeClientProtocol() protocol.ClientProtocol
- func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.StreamReadWriteCloser, error)
- type ClientProtocol
- func (c *ClientProtocol) ConnectionProtocol() conntypes.ConnectionProtocol
- func (c *ClientProtocol) ConnectionType() conntypes.ConnectionType
- func (c *ClientProtocol) DC() conntypes.DC
- func (c *ClientProtocol) Handshake(socket conntypes.StreamReadWriteCloser) (conntypes.StreamReadWriteCloser, error)
- func (c *ClientProtocol) ReadFrame(socket conntypes.StreamReader) (Frame, error)
- type Frame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeClientProtocol ¶
func MakeClientProtocol() protocol.ClientProtocol
func TelegramProtocol ¶
func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.StreamReadWriteCloser, error)
Types ¶
type ClientProtocol ¶
type ClientProtocol struct {
// contains filtered or unexported fields
}
func (*ClientProtocol) ConnectionProtocol ¶
func (c *ClientProtocol) ConnectionProtocol() conntypes.ConnectionProtocol
func (*ClientProtocol) ConnectionType ¶
func (c *ClientProtocol) ConnectionType() conntypes.ConnectionType
func (*ClientProtocol) DC ¶
func (c *ClientProtocol) DC() conntypes.DC
func (*ClientProtocol) Handshake ¶
func (c *ClientProtocol) Handshake(socket conntypes.StreamReadWriteCloser) (conntypes.StreamReadWriteCloser, error)
func (*ClientProtocol) ReadFrame ¶
func (c *ClientProtocol) ReadFrame(socket conntypes.StreamReader) (Frame, error)
Click to show internal directories.
Click to hide internal directories.