websocket_fasthttp/socket_handler.go

12 lines
314 B
Go
Raw Normal View History

2017-11-07 19:03:40 +09:00
package websocket_fasthttp
import (
"git.loafle.net/commons_go/websocket_fasthttp/websocket"
"github.com/valyala/fasthttp"
)
type SocketHandler interface {
Handshake(ctx *fasthttp.RequestCtx) (bool, *fasthttp.ResponseHeader)
Handle(conn *websocket.Conn, stopChan <-chan struct{}, doneChan chan<- struct{})
}