Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶ added in v1.2.0
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶ added in v1.2.0
func (*Connector) GetListener ¶ added in v1.3.0
func (*Connector) OnConnect ¶ added in v1.3.0
func (p *Connector) OnConnect(fn cfacade.OnConnectFunc)
type TCPConnector ¶
func NewTCP ¶ added in v1.1.0
func NewTCP(address string, opts ...Option) *TCPConnector
func (*TCPConnector) Name ¶ added in v1.1.29
func (*TCPConnector) Name() string
func (*TCPConnector) OnAfterInit ¶ added in v1.1.29
func (t *TCPConnector) OnAfterInit()
func (*TCPConnector) OnStop ¶ added in v1.1.0
func (t *TCPConnector) OnStop()
func (*TCPConnector) Start ¶
func (t *TCPConnector) Start()
func (*TCPConnector) Stop ¶
func (t *TCPConnector) Stop()
type WSConn ¶ added in v1.1.27
WSConn is an adapter to t.INetConn, which implements all INetConn interface base on *websocket.INetConn
type WSConnector ¶ added in v1.1.0
type WSConnector struct { cfacade.Component Connector Options // contains filtered or unexported fields }
func NewWS ¶ added in v1.1.0
func NewWS(address string, opts ...Option) *WSConnector
func (*WSConnector) Name ¶ added in v1.1.29
func (*WSConnector) Name() string
func (*WSConnector) OnAfterInit ¶ added in v1.1.29
func (w *WSConnector) OnAfterInit()
func (*WSConnector) OnStop ¶ added in v1.1.0
func (w *WSConnector) OnStop()
func (*WSConnector) ServeHTTP ¶ added in v1.1.0
func (w *WSConnector) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*WSConnector) SetUpgrade ¶ added in v1.1.29
func (w *WSConnector) SetUpgrade(upgrade *websocket.Upgrader)
func (*WSConnector) Start ¶ added in v1.3.0
func (w *WSConnector) Start()
func (*WSConnector) Stop ¶ added in v1.3.0
func (w *WSConnector) Stop()
Click to show internal directories.
Click to hide internal directories.