// NewRouter initializes a new console router
NewRouter initializes a new console router
// NewRouter initializes a new console router
func NewRouter(b Backend) router.Router {
	r := &consoleRouter{
		backend:    b,
		upgrader:   websocket.Upgrader{},
		exec:       make(map[string]string),
		inputChan:  make(map[string]chan []byte),
		outputChan: make(map[string]chan []byte),
	}
	r.initRoutes()
	return r
}
func NewRouter ( b Backend ) router . Router { r := & consoleRouter { backend : b , upgrader : websocket . Upgrader { } , exec : make ( map [ string ] string ) , inputChan : make ( map [ string ] chan [ ] byte ) , outputChan : make ( map [ string ] chan [ ] byte ) , } r . initRoutes ( ) return r }
NewRouter initializes a new console router
NewRouter initializes a new console router