mirror of
https://github.com/yudai/gotty.git
synced 2025-12-24 19:30:13 +01:00
21 lines
354 B
Go
21 lines
354 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ghthor/gotty/v2/webtty"
|
|
|
|
"github.com/gorilla/websocket"
|
|
)
|
|
|
|
// Slave is webtty.Slave with some additional methods.
|
|
type Slave interface {
|
|
webtty.Slave
|
|
|
|
Close() error
|
|
}
|
|
|
|
type Factory interface {
|
|
Name() string
|
|
New(ctx context.Context, params map[string][]string, conn *websocket.Conn) (Slave, error)
|
|
}
|