util

package
v0.0.0-...-ee419b2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferedStdoutLog

func BufferedStdoutLog(c byte, secure bool)

func BufferedTermLog

func BufferedTermLog(c byte, secure bool, t *term.Terminal)

func LookupSym

func LookupSym(name string) (*elf.Symbol, error)

func PCToLine

func PCToLine(pc uint64) (s string, err error)

func SetDebugTarget

func SetDebugTarget(buf []byte)

Types

type Console

type Console struct {
	// Handler is the terminal command handler
	Handler func(*term.Terminal)
	// Term is the terminal instance
	Term *term.Terminal
	// Listener is the network listener
	Listener net.Listener
}

Console represents an SSH console instance.

func NewScreenConsole

func NewScreenConsole() *Console

New() instantiates a console on stdin/stdout.

func (*Console) Start

func (c *Console) Start() (err error)

Start instantiates an SSH console on the given listener.

type LEDStatus

type LEDStatus struct {
	// Name is the LED name
	Name string
	// On is the LED state
	On bool
}

LEDStatus represents an RPC LED state request.

Jump to

Keyboard shortcuts

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