2017-02-26 06:37:07 +08:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2021-04-11 12:39:41 +08:00
|
|
|
"github.com/sorenisanerd/gotty/webtty"
|
2017-02-26 06:37:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Slave is webtty.Slave with some additional methods.
|
|
|
|
type Slave interface {
|
|
|
|
webtty.Slave
|
|
|
|
|
2017-08-24 13:40:28 +08:00
|
|
|
Close() error
|
2017-02-26 06:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Factory interface {
|
|
|
|
Name() string
|
|
|
|
New(params map[string][]string) (Slave, error)
|
|
|
|
}
|