link

package
v0.0.0-...-499d384 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2015 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	StdinData  []byte
	EOF        bool
	WindowSize *WindowSize
	Msg        []byte
}
type Link struct {
	*Writer
	// contains filtered or unexported fields
}

func Create

func Create(socketPath string, stdout io.Writer, stderr io.Writer) (*Link, error)

func (*Link) Wait

func (link *Link) Wait() (int, error)

type SignalMsg

type SignalMsg struct {
	Signal syscall.Signal `json:"signal"`
}

type WindowSize

type WindowSize struct {
	Columns int
	Rows    int
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(conn net.Conn) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) SendMsg

func (w *Writer) SendMsg(msg []byte) error

func (*Writer) SetWindowSize

func (w *Writer) SetWindowSize(cols, rows int) error

func (*Writer) TerminateConnection

func (w *Writer) TerminateConnection() error

func (*Writer) Write

func (w *Writer) Write(d []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL