mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02:00
17 lines
301 B
Go
17 lines
301 B
Go
package server
|
|
|
|
import (
|
|
"github.com/yudai/gotty/webtty"
|
|
)
|
|
|
|
// Slave is webtty.Slave with some additional methods.
|
|
type Slave interface {
|
|
webtty.Slave
|
|
|
|
GetTerminalSize() (width int, height int, err error)
|
|
}
|
|
|
|
type Factory interface {
|
|
Name() string
|
|
New(params map[string][]string) (Slave, error)
|
|
}
|