deprecated_overflow_gateway.../server_handler.go
crusader 4146e11294 ing
2017-08-31 17:58:29 +09:00

23 lines
460 B
Go

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()
}