wsconnadapter

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedMessageType = errors.New("unexpected websocket message type")

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Logger *log.Entry
	// contains filtered or unexported fields
}

func New

func New(conn *websocket.Conn) *Adapter

func (*Adapter) Close

func (a *Adapter) Close() error

func (*Adapter) LocalAddr

func (a *Adapter) LocalAddr() net.Addr

func (*Adapter) Ping added in v0.13.6

func (a *Adapter) Ping() chan bool

func (*Adapter) Read

func (a *Adapter) Read(b []byte) (int, error)

func (*Adapter) RemoteAddr

func (a *Adapter) RemoteAddr() net.Addr

func (*Adapter) SetDeadline

func (a *Adapter) SetDeadline(t time.Time) error

func (*Adapter) SetReadDeadline

func (a *Adapter) SetReadDeadline(t time.Time) error

func (*Adapter) SetWriteDeadline

func (a *Adapter) SetWriteDeadline(t time.Time) error

func (*Adapter) WithDevice added in v0.16.2

func (a *Adapter) WithDevice(tenant string, device string) *Adapter

func (*Adapter) WithID added in v0.16.2

func (a *Adapter) WithID(requestID string) *Adapter

func (*Adapter) Write

func (a *Adapter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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