gotty/server/slave.go

18 lines
269 B
Go
Raw Normal View History

2017-02-26 06:37:07 +08:00
package server
import (
"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)
}