web

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrWeb is for [sabase.AgentBaseStatesDef.ErrWeb].
	ErrWeb = errors.New("web UI error")
	// ErrWebPTY is for [sabase.AgentBaseStatesDef.ErrWebPTY].
	ErrWebPTY = errors.New("web PTY UI error")
)
View Source
var Pass = shared.Pass
View Source
var PassRpc = types.PassRpc

Functions

func AddErr

func AddErr(
	event *am.Event, mach *am.Machine, err error, args ...am.A,
) am.Result

AddErr adds ErrWeb.

func AddErrPTY

func AddErrPTY(
	event *am.Event, mach *am.Machine, err error, args ...am.A,
) am.Result

AddErrPTY adds ErrWebPTY.

Types

type A

type A = types.A

type ABase

type ABase = shared.A

type Handlers

type Handlers struct {
	A shared.AgentBaseAPI
	// contains filtered or unexported fields
}

func (*Handlers) BaseDBReadyState

func (h *Handlers) BaseDBReadyState(e *am.Event)

func (*Handlers) DBReadyState

func (h *Handlers) DBReadyState(e *am.Event)

func (*Handlers) DebuggerState

func (h *Handlers) DebuggerState(e *am.Event)

DebuggerState starts web am-dbg

func (*Handlers) ExposeCmd

func (h *Handlers) ExposeCmd(
	ctx context.Context, e *am.Event, title, webPort string, cmd string, args []string, clientGoneCh chan<- string,
) error

func (*Handlers) ExposeSSH

func (h *Handlers) ExposeSSH(ctx context.Context, e *am.Event, title, webPort, sshPort string, clientGoneCh chan<- string) error

func (*Handlers) HistoryDBReadyState

func (h *Handlers) HistoryDBReadyState(e *am.Event)

func (*Handlers) REPLState

func (h *Handlers) REPLState(e *am.Event)

REPLState starts web REPL

func (*Handlers) RemoteDashReadyState

func (h *Handlers) RemoteDashReadyState(e *am.Event)

func (*Handlers) RemoteUIReadyExit

func (h *Handlers) RemoteUIReadyExit(e *am.Event) bool

func (*Handlers) RemoteUIReadyState

func (h *Handlers) RemoteUIReadyState(e *am.Event)

func (*Handlers) StartHTTP

func (h *Handlers) StartHTTP(e *am.Event) error

func (*Handlers) UIModeEnd

func (h *Handlers) UIModeEnd(e *am.Event)

func (*Handlers) UIModeState

func (h *Handlers) UIModeState(e *am.Event)

func (*Handlers) WebConnectedExit

func (h *Handlers) WebConnectedExit(e *am.Event) bool

func (*Handlers) WebRPCReadyEnter

func (h *Handlers) WebRPCReadyEnter(e *am.Event) bool

func (*Handlers) WebSSHReadyEnter

func (h *Handlers) WebSSHReadyEnter(e *am.Event) bool

func (*Handlers) WebSSHReadyState

func (h *Handlers) WebSSHReadyState(e *am.Event)

Directories

Path Synopsis
cmd command

Jump to

Keyboard shortcuts

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