Documentation ¶ Index ¶ Variables func Init(ctx context.Context) type Interface type ProxyConn func (p *ProxyConn) Close() func (p *ProxyConn) Read() (*rpc.ProxyResponse, error) func (p *ProxyConn) Write(packet conntypes.Packet) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrTimeout = errors.New("timeout") ErrClosed = errors.New("context is closed") Hub Interface ) Functions ¶ func Init ¶ func Init(ctx context.Context) Types ¶ type Interface ¶ type Interface interface { Register(*protocol.TelegramRequest) (*ProxyConn, error) } type ProxyConn ¶ type ProxyConn struct { // contains filtered or unexported fields } func (*ProxyConn) Close ¶ func (p *ProxyConn) Close() func (*ProxyConn) Read ¶ func (p *ProxyConn) Read() (*rpc.ProxyResponse, error) func (*ProxyConn) Write ¶ func (p *ProxyConn) Write(packet conntypes.Packet) error Source Files ¶ View all Source files connection.go connection_list.go hub.go init.go interface.go mux.go proxy_conn.go Click to show internal directories. Click to hide internal directories.