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 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 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.