Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseHandler ¶
type Gateway ¶
type Gateway interface { Start() Run() Shutdown() GetConn(connID uint64) rony.Conn Addr() []string Protocol() Protocol }
Gateway defines the gateway interface where clients could connect and communicate with the edge server
type MessageHandler ¶
type ProxyFactory ¶ added in v0.6.40
type ProxyFactory interface { Get() ProxyHandle Release(h ProxyHandle) }
type ProxyHandle ¶ added in v0.6.1
type ProxyHandle interface { OnRequest(conn rony.Conn, ctx *RequestCtx) []byte OnResponse(data []byte) (*pools.ByteBuffer, map[string]string) }
type RequestCtx ¶ added in v0.5.23
type RequestCtx = fasthttp.RequestCtx
Click to show internal directories.
Click to hide internal directories.