hub

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL