gotty/server/slave.go

20 lines
321 B
Go
Raw Normal View History

2017-02-26 07:37:07 +09:00
package server
import (
2022-02-26 18:32:53 -05:00
"github.com/ghthor/gotty/v2/webtty"
"github.com/gorilla/websocket"
2017-02-26 07:37:07 +09:00
)
// Slave is webtty.Slave with some additional methods.
type Slave interface {
webtty.Slave
2017-08-24 14:40:28 +09:00
Close() error
2017-02-26 07:37:07 +09:00
}
type Factory interface {
Name() string
New(params map[string][]string, conn *websocket.Conn) (Slave, error)
2017-02-26 07:37:07 +09:00
}