15 lines
321 B
Go
15 lines
321 B
Go
package rpc
|
|
|
|
import (
|
|
"github.com/valyala/fasthttp"
|
|
|
|
cwf "git.loafle.net/commons_go/websocket_fasthttp"
|
|
)
|
|
|
|
type GatewayRPCHandler interface {
|
|
Init(serverCTX cwf.ServerContext) error
|
|
Handshake(socketCTX cwf.SocketContext, ctx *fasthttp.RequestCtx) (id string, extensionsHeader *fasthttp.ResponseHeader)
|
|
|
|
Validate()
|
|
}
|