package repl
Import Path
/tools/repl (on go.dev )
Dependency Relation
imports 30 packages , and imported by one package
Package-Level Type Names (total 9)
/* sort by: alphabet | popularity */
type Repl (struct)
Fields (total 6 )
Addrs []string
Addrs ending with /* are WebSockets
TODO keep NAMED addresses eg CLI0, filename1, filename2, CLI1
and manipulate when watching for changes, keeping the prev ones
C *console .Console
Cmd *cobra .Command
DbgAddr string
am-dbg address for new clients
ExceptionHandler *am .ExceptionHandler
TODO JSON output
Mach *am .Machine
Methods (total 36 )
(*Repl) AddrChangedEnter (e *am .Event ) bool
(*Repl) AddrChangedState (e *am .Event )
TODO avoid a full restart
(*Repl) CmdAddEnter (e *am .Event ) bool
(*Repl) CmdAddState (e *am .Event )
(*Repl) CmdGroupAddEnter (e *am .Event ) bool
(*Repl) CmdGroupAddState (e *am .Event )
(*Repl) CmdGroupRemoveEnter (e *am .Event ) bool
(*Repl) CmdGroupRemoveState (e *am .Event )
(*Repl) CmdRemoveEnter (e *am .Event ) bool
(*Repl) CmdRemoveState (e *am .Event )
(*Repl) ConnectedExit (e *am .Event ) bool
(*Repl) ConnectedFullyEnter (e *am .Event ) bool
(*Repl) ConnectedFullyExit (e *am .Event ) bool
(*Repl) ConnectedState (e *am .Event )
(*Repl) ConnectingEnter (e *am .Event ) bool
(*Repl) ConnectingExit (e *am .Event ) bool
(*Repl) ConnectingState (e *am .Event )
(*Repl) DisconnectedState (e *am .Event )
(*Repl) DisconnectingState (e *am .Event )
(*Repl) ErrNetworkState (e *am .Event )
( Repl) ExceptionState (e *machine .Event )
ExceptionState is a final entry handler for the StateException state.
ArgsBase:
- err error: The error that caused the StateException state.
- panic *ExceptionArgsPanic: Optional details about the panic.
(*Repl) ListMachines (filters *ListFilters ) ([]*arpc .Client , error )
(*Repl) ListMachinesEnter (e *am .Event ) bool
(*Repl) ListMachinesState (e *am .Event )
(*Repl) NetMach (machId string ) *arpc .NetworkMachine
NetMach returns an RPC worker with a given ID, or nil.
(*Repl) NetMachArgs (machId string ) []string
NetMachArgs returns a list of registered typed args for a given machine.
(*Repl) Print (txt string , args ...any )
(*Repl) PrintErr (txt string , args ...any )
(*Repl) PrintMsg (txt string , args ...any )
PrintMsg prints a message about the prompt.
(*Repl) ReplModeState (e *am .Event )
(*Repl) RpcConnEnter (e *am .Event ) bool
(*Repl) RpcConnState (e *am .Event )
(*Repl) RpcDisconnEnter (e *am .Event ) bool
(*Repl) RpcDisconnState (e *am .Event )
(*Repl) StartEnter (e *am .Event ) bool
(*Repl) StartState (e *am .Event )
Implements (at least one exported )
*Repl : ReplApi
As Outputs Of (at least one exported )
func New (ctx context .Context , id string ) (*Repl , error )
As Inputs Of (at least 6 )
func InspectingCmds (repl *Repl ) []*cobra .Command
func MutationCmds (repl *Repl ) []*cobra .Command
func NewRootCommand (repl *Repl , cliArgs, osArgs []string ) *cobra .Command
func ReplCmds (repl *Repl ) []*cobra .Command
func SysCmds (repl *Repl ) []*cobra .Command
func WaitingCmds (repl *Repl ) []*cobra .Command
Package-Level Functions (total 10)
Package-Level Variables (total 3)
Package-Level Constants (only one)
The pages are generated with Golds v0.8.4 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .