face

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Face

type Face interface {
	Open() error
	Close() error
	Send(pkt enc.Wire) error
	IsRunning() bool
	IsLocal() bool
	SetCallback(onPkt func(r enc.ParseReader) error,
		onError func(err error) error)
}

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) Send

func (f *StreamFace) Send(pkt enc.Wire) error

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) Send

func (f *WebSocketFace) Send(pkt enc.Wire) error

func (*WebSocketFace) SetCallback

func (f *WebSocketFace) SetCallback(onPkt func(r enc.ParseReader) error,
	onError func(err error) error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL