gotty/server/slave.go

22 lines
354 B
Go
Raw Normal View History

2017-02-26 07:37:07 +09:00
package server
import (
"context"
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(ctx context.Context, params map[string][]string, conn *websocket.Conn) (Slave, error)
2017-02-26 07:37:07 +09:00
}