gotty/server/slave.go
2021-10-14 09:48:46 +01:00

18 lines
298 B
Go

package server
import (
"github.com/sorenisanerd/gotty/webtty"
)
// Slave is webtty.Slave with some additional methods.
type Slave interface {
webtty.Slave
Close() error
}
type Factory interface {
Name() string
New(params map[string][]string, headers map[string][]string) (Slave, error)
}