server-go/socket/servlet.go
crusader d1d485c711 ing
2018-06-29 19:02:40 +09:00

14 lines
357 B
Go

package socket
import (
"git.loafle.net/commons/server-go"
)
type Servlet interface {
server.Servlet
OnConnect(servletCtx server.ServletCtx, conn Conn)
Handle(servletCtx server.ServletCtx, stopChan <-chan struct{}, doneChan chan<- struct{}, readChan <-chan SocketMessage, writeChan chan<- SocketMessage)
OnDisconnect(servletCtx server.ServletCtx)
}