Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type ClientOption
- type Logger
- type Server
- type ServerOption
- func WithServerCloseTimeout(d time.Duration) ServerOption
- func WithServerDebugInput(writer io.Writer) ServerOption
- func WithServerDebugOutput(writer io.Writer) ServerOption
- func WithServerLogger(logger Logger) ServerOption
- func WithServerPingInterval(d time.Duration) ServerOption
- func WithServerPingTimeout(d time.Duration) ServerOption
Constants ¶
View Source
const ( EndOfTransmission = "\u0004" Escape = '\u001b' )
Variables ¶
View Source
var ( ErrTerminalSizeMonitorStopped = errors.New("terminal size monitor has been stopped") ErrUnexpectedMessageType = errors.New("received unexpected message type") )
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
type ClientOption func(cli *Client)
func WithClientDebugInput ¶
func WithClientDebugInput(writer io.Writer) ClientOption
func WithClientLogger ¶
func WithClientLogger(logger Logger) ClientOption
func WithClientTTY ¶
func WithClientTTY(tty term.TTY) ClientOption
type Logger ¶
type Logger interface { Printfln(format string, a ...interface{}) Println(a ...interface{}) }
type Server ¶
func (*Server) Next ¶
func (s *Server) Next() *remotecommand.TerminalSize
type ServerOption ¶
type ServerOption func(s *Server)
func WithServerCloseTimeout ¶
func WithServerCloseTimeout(d time.Duration) ServerOption
func WithServerDebugInput ¶
func WithServerDebugInput(writer io.Writer) ServerOption
func WithServerDebugOutput ¶
func WithServerDebugOutput(writer io.Writer) ServerOption
func WithServerLogger ¶
func WithServerLogger(logger Logger) ServerOption
func WithServerPingInterval ¶
func WithServerPingInterval(d time.Duration) ServerOption
func WithServerPingTimeout ¶
func WithServerPingTimeout(d time.Duration) ServerOption
Click to show internal directories.
Click to hide internal directories.