Documentation
¶
Index ¶
- type DummyFace
- func (f *DummyFace) Close() error
- func (f *DummyFace) Consume() (enc.Buffer, error)
- func (f *DummyFace) FeedPacket(pkt enc.Buffer) error
- func (f *DummyFace) IsLocal() bool
- func (f *DummyFace) IsRunning() bool
- func (f *DummyFace) OnDown(onDown func()) (cancel func())
- func (f *DummyFace) OnError(onError func(err error))
- func (f *DummyFace) OnPacket(onPkt func(frame []byte))
- func (f *DummyFace) OnUp(onUp func()) (cancel func())
- func (f *DummyFace) Open() error
- func (f *DummyFace) Send(pkt enc.Wire) error
- func (f *DummyFace) String() string
- type StreamFace
- func (f *StreamFace) Close() error
- func (f *StreamFace) IsLocal() bool
- func (f *StreamFace) IsRunning() bool
- func (f *StreamFace) OnDown(onDown func()) (cancel func())
- func (f *StreamFace) OnError(onError func(err error))
- func (f *StreamFace) OnPacket(onPkt func(frame []byte))
- func (f *StreamFace) OnUp(onUp func()) (cancel func())
- func (f *StreamFace) Open() error
- func (f *StreamFace) Send(pkt enc.Wire) error
- func (f *StreamFace) String() string
- type WebSocketFace
- func (f *WebSocketFace) Close() error
- func (f *WebSocketFace) IsLocal() bool
- func (f *WebSocketFace) IsRunning() bool
- func (f *WebSocketFace) OnDown(onDown func()) (cancel func())
- func (f *WebSocketFace) OnError(onError func(err error))
- func (f *WebSocketFace) OnPacket(onPkt func(frame []byte))
- func (f *WebSocketFace) OnUp(onUp func()) (cancel func())
- func (f *WebSocketFace) Open() error
- func (f *WebSocketFace) Send(pkt enc.Wire) error
- func (f *WebSocketFace) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyFace ¶ added in v1.5.0
type DummyFace struct {
// contains filtered or unexported fields
}
func NewDummyFace ¶ added in v1.5.0
func NewDummyFace() *DummyFace
func (*DummyFace) FeedPacket ¶ added in v1.5.0
FeedPacket feeds a packet for the engine to consume
type StreamFace ¶
type StreamFace struct {
// contains filtered or unexported fields
}
StreamFace is a face that uses a stream connection.
func NewStreamFace ¶
func NewStreamFace(network string, addr string, local bool) *StreamFace
func (*StreamFace) Close ¶
func (f *StreamFace) Close() error
func (*StreamFace) OnDown ¶ added in v1.5.0
func (f *StreamFace) OnDown(onDown func()) (cancel func())
func (*StreamFace) OnPacket ¶ added in v1.5.0
func (f *StreamFace) OnPacket(onPkt func(frame []byte))
func (*StreamFace) Open ¶
func (f *StreamFace) Open() error
func (*StreamFace) String ¶ added in v1.5.0
func (f *StreamFace) String() string
type WebSocketFace ¶
type WebSocketFace struct {
// contains filtered or unexported fields
}
func NewWebSocketFace ¶
func NewWebSocketFace(url string, local bool) *WebSocketFace
func (*WebSocketFace) Close ¶
func (f *WebSocketFace) Close() error
func (*WebSocketFace) OnDown ¶ added in v1.5.0
func (f *WebSocketFace) OnDown(onDown func()) (cancel func())
func (*WebSocketFace) OnError ¶ added in v1.5.0
func (f *WebSocketFace) OnError(onError func(err error))
func (*WebSocketFace) OnPacket ¶ added in v1.5.0
func (f *WebSocketFace) OnPacket(onPkt func(frame []byte))
func (*WebSocketFace) OnUp ¶ added in v1.5.0
func (f *WebSocketFace) OnUp(onUp func()) (cancel func())
func (*WebSocketFace) Open ¶
func (f *WebSocketFace) Open() error
func (*WebSocketFace) String ¶ added in v1.5.0
func (f *WebSocketFace) String() string
Click to show internal directories.
Click to hide internal directories.