github.com/glide-im/glide@v1.6.0/pkg/conn/server.go (about)

     1  package conn
     2  
     3  type ConnectionHandler func(conn Connection)
     4  
     5  type Server interface {
     6  	SetConnHandler(handler ConnectionHandler)
     7  	Run(host string, port int) error
     8  }