deprecated_overflow_gateway.../server_handler.go

23 lines
460 B
Go
Raw Normal View History

2017-08-31 08:58:29 +00:00
package overflow_gateway_websocket
import (
"time"
"github.com/valyala/fasthttp"
)
type ServerHandler interface {
GetHandshakeTimeout() time.Duration
GetReadBufferSize() int
GetWriteBufferSize() int
GetEnableCompression() bool
OnConnection(soc Socket)
OnDisconnected(soc Socket)
OnCheckOrigin(ctx *fasthttp.RequestCtx) bool
OnError(ctx *fasthttp.RequestCtx, status int, reason error)
OnIDGenerate(ctx *fasthttp.RequestCtx) string
Validate()
}