Documentation
¶
Index ¶
- Variables
- type CloudConfig
- type Handler
- type Option
- type Proxy
- func (p *Proxy) AddConnectListener(listener event.ConnectListener) event.CancelFunc
- func (p *Proxy) AddMessageListener(listener event.MsgListener) event.CancelFunc
- func (p *Proxy) AddProxyListeners(handler Handler)
- func (p *Proxy) HandleWrp(m wrp.Message) error
- func (p *Proxy) IsEnabled() bool
- func (p *Proxy) Name() string
- func (p *Proxy) OnQuicConnect(e event.Connect)
- func (p *Proxy) OnWebsocketConnect(e event.Connect)
- func (p *Proxy) Start()
- func (p *Proxy) Stop()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶ added in v0.7.35
type CloudConfig struct {
QuicPreferred bool
}
type Handler ¶
type Handler interface {
// connect to cloud and start sending and receiving messages
Start()
// disconnect from cloud
Stop()
// any listener added will be called when the network channel receives a messages from the cloud
AddMessageListener(listener event.MsgListener) event.CancelFunc
// any listener added will be called when the network channel tries to connect
AddConnectListener(listener event.ConnectListener) event.CancelFunc
Name() string
IsEnabled() bool
}
Handler interface is used to handle networking calls to and from the cloud in a similar way
type Option ¶ added in v0.7.35
type Option interface {
// contains filtered or unexported methods
}
func PreferQuic ¶ added in v0.7.35
whether or not to try quic before trying the websocket
func QuicClient ¶ added in v0.7.35
type Proxy ¶ added in v0.7.35
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) AddConnectListener ¶ added in v0.7.35
func (p *Proxy) AddConnectListener(listener event.ConnectListener) event.CancelFunc
func (*Proxy) AddMessageListener ¶ added in v0.7.35
func (p *Proxy) AddMessageListener(listener event.MsgListener) event.CancelFunc
func (*Proxy) AddProxyListeners ¶ added in v0.7.35
func (*Proxy) OnQuicConnect ¶ added in v0.7.35
func (*Proxy) OnWebsocketConnect ¶ added in v0.7.35
Click to show internal directories.
Click to hide internal directories.