server-go/socket/servlet.go
crusader 7e7d6258c0 ing
2018-04-06 00:15:29 +09:00

14 lines
343 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 []byte, writeChan chan<- []byte)
OnDisconnect(servletCtx server.ServletCtx)
}