server-go/socket/servlet.go

14 lines
358 B
Go
Raw Permalink Normal View History

2018-08-22 08:37:12 +00:00
package socket
import (
"git.loafle.net/overflow/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)
}