package relay
Import Path
/tools/relay (on go.dev)
Dependency Relation
imports 24 packages, and imported by 2 packages
Package-Level Type Names (total 3)
Args types.Args
HttpMux *http.ServeMux
Mach *am.Machine
(*Relay) ClientMsgEnter(e *am.Event) bool
(*Relay) ClientMsgState(e *am.Event)
(*Relay) ConnectEventEnter(e *am.Event) bool
(*Relay) ConnectEventState(e *am.Event)
(*Relay) DisconnectEventEnter(e *am.Event) bool
(*Relay) DisconnectEventState(e *am.Event)
(*Relay) HandleWsTcpListen(e *am.Event, w http.ResponseWriter, req *http.Request)
(*Relay) HttpReadyEnd(e *am.Event)
(*Relay) HttpReadyState(e *am.Event)
(*Relay) HttpStartingState(e *am.Event)
(*Relay) Start(e *am.Event) am.Result
(*Relay) StartState(e *am.Event)
(*Relay) Stop(e *am.Event) am.Result
func New(ctx context.Context, args types.Args) (*Relay, error)
DisposedHandlers *ssam.DisposedHandlers
Mach *am.Machine
RemoteAddr string
RemoteId string
TCP addr to listen on
TcpLn net.Listener
Incoming WebSocket connection
( WsTcpTun) DisposedState(e *am.Event)
( WsTcpTun) DisposingState(e *am.Event)
( WsTcpTun) RegisterDisposalEnter(e *am.Event) bool
( WsTcpTun) RegisterDisposalState(e *am.Event)
(*WsTcpTun) StartEnd(e *am.Event)
(*WsTcpTun) StartEnter(e *am.Event) bool
(*WsTcpTun) StartState(e *am.Event)
(*WsTcpTun) TcpAcceptedState(e *am.Event)
(*WsTcpTun) TcpListenState(e *am.Event)
(*WsTcpTun) TcpListeningState(e *am.Event)
(*WsTcpTun) WebSocketEnd(e *am.Event)
func NewWsTcpTun(ctx context.Context, wsConn *websocket.Conn, idRemote, addr, remoteAddr, idTun string, parent am.Api, debug bool) (*WsTcpTun, error)
Package-Level Functions (total 2)
New creates a new Relay - state machine, RPC server.
![]() |
The pages are generated with Golds v0.8.2. (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. |