Documentation
¶
Index ¶
- Variables
- func AddErr(event *am.Event, mach *am.Machine, err error, args ...am.A) am.Result
- func AddErrPTY(event *am.Event, mach *am.Machine, err error, args ...am.A) am.Result
- func ResourceFS(web fs.FS) goapp.ResourceResolver
- type A
- type ABase
- type Handlers
- func (h *Handlers) BaseDBReadyState(e *am.Event)
- func (h *Handlers) DBReadyState(e *am.Event)
- func (h *Handlers) DebuggerState(e *am.Event)
- func (h *Handlers) ExposeCmd(ctx context.Context, e *am.Event, title, webPort string, cmd string, ...) error
- func (h *Handlers) ExposeSSH(ctx context.Context, e *am.Event, title, webPort, sshPort string, ...) error
- func (h *Handlers) HistoryDBReadyState(e *am.Event)
- func (h *Handlers) REPLState(e *am.Event)
- func (h *Handlers) RemoteDashReadyState(e *am.Event)
- func (h *Handlers) RemoteUIReadyExit(e *am.Event) bool
- func (h *Handlers) RemoteUIReadyState(e *am.Event)
- func (h *Handlers) StartHTTP(e *am.Event) error
- func (h *Handlers) UIModeEnd(e *am.Event)
- func (h *Handlers) UIModeState(e *am.Event)
- func (h *Handlers) WebConnectedExit(e *am.Event) bool
- func (h *Handlers) WebRPCReadyEnter(e *am.Event) bool
- func (h *Handlers) WebSSHReadyEnter(e *am.Event) bool
- func (h *Handlers) WebSSHReadyState(e *am.Event)
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 ResourceFS ¶ added in v0.5.2
func ResourceFS(web fs.FS) goapp.ResourceResolver
Types ¶
type Handlers ¶
type Handlers struct {
A shared.AgentBaseAPI
// contains filtered or unexported fields
}
func (*Handlers) BaseDBReadyState ¶
func (*Handlers) DBReadyState ¶
func (*Handlers) DebuggerState ¶
DebuggerState starts web am-dbg
func (*Handlers) HistoryDBReadyState ¶
func (*Handlers) RemoteDashReadyState ¶
func (*Handlers) RemoteUIReadyState ¶
func (*Handlers) UIModeState ¶
func (*Handlers) WebSSHReadyState ¶
Click to show internal directories.
Click to hide internal directories.