Documentation
¶
Index ¶
- Variables
- type A
- type Relay
- func (r *Relay) ClientMsgEnter(e *am.Event) bool
- func (r *Relay) ClientMsgState(e *am.Event)
- func (r *Relay) ConnectEventEnter(e *am.Event) bool
- func (r *Relay) ConnectEventState(e *am.Event)
- func (r *Relay) DisconnectEventEnter(e *am.Event) bool
- func (r *Relay) DisconnectEventState(e *am.Event)
- func (r *Relay) HandleWsTcpListen(e *am.Event, w http.ResponseWriter, req *http.Request)
- func (r *Relay) HttpReadyEnd(e *am.Event)
- func (r *Relay) HttpReadyState(e *am.Event)
- func (r *Relay) HttpStartingState(e *am.Event)
- func (r *Relay) Start(e *am.Event) am.Result
- func (r *Relay) StartState(e *am.Event)
- func (r *Relay) Stop(e *am.Event) am.Result
- type WsTcpTun
- func (t *WsTcpTun) DisposingState(e *am.Event)
- func (t *WsTcpTun) StartEnd(e *am.Event)
- func (t *WsTcpTun) StartEnter(e *am.Event) bool
- func (t *WsTcpTun) StartState(e *am.Event)
- func (t *WsTcpTun) TcpAcceptedState(e *am.Event)
- func (t *WsTcpTun) TcpListenState(e *am.Event)
- func (t *WsTcpTun) TcpListeningState(e *am.Event)
- func (t *WsTcpTun) WebSocketEnd(e *am.Event)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Pass = types.Pass
)
Functions ¶
This section is empty.
Types ¶
type Relay ¶
type Relay struct {
Mach *am.Machine
Args types.Args
HttpMux *http.ServeMux
// contains filtered or unexported fields
}
func (*Relay) ClientMsgState ¶
func (*Relay) ConnectEventState ¶
func (*Relay) DisconnectEventState ¶
func (*Relay) HandleWsTcpListen ¶ added in v0.18.0
func (*Relay) HttpReadyEnd ¶ added in v0.18.0
func (*Relay) HttpReadyState ¶ added in v0.18.0
func (*Relay) HttpStartingState ¶ added in v0.18.0
func (*Relay) StartState ¶
type WsTcpTun ¶ added in v0.18.0
type WsTcpTun struct {
*ssam.DisposedHandlers
Mach *am.Machine
// Incoming WebSocket connection
WsConn *websocket.Conn
// TCP addr to listen on
TcpAddr string
TcpLn net.Listener
RemoteAddr string
RemoteId string
}
func NewWsTcpTun ¶ added in v0.18.0
func (*WsTcpTun) DisposingState ¶ added in v0.18.2
func (*WsTcpTun) StartState ¶ added in v0.18.0
func (*WsTcpTun) TcpAcceptedState ¶ added in v0.18.0
func (*WsTcpTun) TcpListenState ¶ added in v0.18.0
func (*WsTcpTun) TcpListeningState ¶ added in v0.18.0
func (*WsTcpTun) WebSocketEnd ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.