handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteShell

type ExecuteShell struct {
	Shell   []string `json:"shell"`
	Command string   `json:"command"`

	SrcReader io.Reader `json:"-"`
	DstWriter io.Writer `json:"-"`
}

func (*ExecuteShell) ApplyDefaults

func (e *ExecuteShell) ApplyDefaults()

func (*ExecuteShell) ServeClient

func (s *ExecuteShell) ServeClient(ctx context.Context, r *bufio.Reader, w io.Writer)

func (*ExecuteShell) ServeServer

func (s *ExecuteShell) ServeServer(ctx context.Context, r *bufio.Reader, w io.Writer)

type ResizeShell

type ResizeShell struct {
	Cols int `json:"cols"`
	Rows int `json:"rows"`
}

func (*ResizeShell) ApplyDefaults

func (o *ResizeShell) ApplyDefaults()

func (*ResizeShell) ServeClient

func (o *ResizeShell) ServeClient(ctx context.Context, r *bufio.Reader, w io.Writer)

func (*ResizeShell) ServeServer

func (o *ResizeShell) ServeServer(ctx context.Context, r *bufio.Reader, w io.Writer)

Jump to

Keyboard shortcuts

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