deprecated_overflow_gateway.../server_handler.go
2017-09-20 14:25:52 +09:00

24 lines
501 B
Go

package overflow_gateway_websocket
import (
"time"
"github.com/valyala/fasthttp"
)
type ServerHandler interface {
GetHandshakeTimeout() time.Duration
GetReadBufferSize() int
GetWriteBufferSize() int
GetEnableCompression() bool
OnConnect(ctx *fasthttp.RequestCtx) bool
OnConnected(soc Socket)
OnDisconnected(soc Socket)
OnCheckOrigin(ctx *fasthttp.RequestCtx) bool
OnError(ctx *fasthttp.RequestCtx, status int, reason error)
OnIDGenerate(ctx *fasthttp.RequestCtx) string
Validate()
}