Documentation
¶
Index ¶
- type Face
- type StreamFace
- func (f *StreamFace) Close() error
- func (f *StreamFace) IsLocal() bool
- func (f *StreamFace) IsRunning() bool
- func (f *StreamFace) Open() error
- func (f *StreamFace) Run()
- func (f *StreamFace) Send(pkt enc.Wire) error
- func (f *StreamFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
- type WasmSimFace
- type WasmWsFace
- type WebSocketFace
- func (f *WebSocketFace) Close() error
- func (f *WebSocketFace) IsLocal() bool
- func (f *WebSocketFace) IsRunning() bool
- func (f *WebSocketFace) Open() error
- func (f *WebSocketFace) Run()
- func (f *WebSocketFace) Send(pkt enc.Wire) error
- func (f *WebSocketFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamFace ¶
type StreamFace struct {
// contains filtered or unexported fields
}
func NewStreamFace ¶
func NewStreamFace(network string, addr string, local bool) *StreamFace
func (*StreamFace) Close ¶
func (f *StreamFace) Close() error
func (*StreamFace) IsLocal ¶
func (f *StreamFace) IsLocal() bool
func (*StreamFace) IsRunning ¶
func (f *StreamFace) IsRunning() bool
func (*StreamFace) Open ¶
func (f *StreamFace) Open() error
func (*StreamFace) Run ¶
func (f *StreamFace) Run()
func (*StreamFace) SetCallback ¶
func (f *StreamFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
type WasmSimFace ¶
type WasmSimFace struct {
// contains filtered or unexported fields
}
func NewWasmSimFace ¶
func NewWasmSimFace() *WasmSimFace
func (*WasmSimFace) Close ¶
func (f *WasmSimFace) Close() error
func (*WasmSimFace) IsLocal ¶
func (f *WasmSimFace) IsLocal() bool
func (*WasmSimFace) IsRunning ¶
func (f *WasmSimFace) IsRunning() bool
func (*WasmSimFace) Open ¶
func (f *WasmSimFace) Open() error
func (*WasmSimFace) SetCallback ¶
func (f *WasmSimFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
type WasmWsFace ¶
type WasmWsFace struct {
// contains filtered or unexported fields
}
func NewWasmWsFace ¶
func NewWasmWsFace(network string, addr string, local bool) *WasmWsFace
func (*WasmWsFace) Close ¶
func (f *WasmWsFace) Close() error
func (*WasmWsFace) IsLocal ¶
func (f *WasmWsFace) IsLocal() bool
func (*WasmWsFace) IsRunning ¶
func (f *WasmWsFace) IsRunning() bool
func (*WasmWsFace) Open ¶
func (f *WasmWsFace) Open() error
func (*WasmWsFace) SetCallback ¶
func (f *WasmWsFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
type WebSocketFace ¶
type WebSocketFace struct {
// contains filtered or unexported fields
}
func NewWebSocketFace ¶
func NewWebSocketFace(network string, addr string, local bool) *WebSocketFace
func (*WebSocketFace) Close ¶
func (f *WebSocketFace) Close() error
func (*WebSocketFace) IsLocal ¶
func (f *WebSocketFace) IsLocal() bool
func (*WebSocketFace) IsRunning ¶
func (f *WebSocketFace) IsRunning() bool
func (*WebSocketFace) Open ¶
func (f *WebSocketFace) Open() error
func (*WebSocketFace) Run ¶
func (f *WebSocketFace) Run()
func (*WebSocketFace) SetCallback ¶
func (f *WebSocketFace) SetCallback(onPkt func(r enc.ParseReader) error, onError func(err error) error)
Click to show internal directories.
Click to hide internal directories.