lane

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lane

type Lane interface {
	SetReadDeadline(t time.Time) error
	SetWriteDeadline(t time.Time) error
	ReadMessage(msg *model.Message) error
	WriteMessage(msg *model.Message) error
	Read(raw []byte) (int, error)
	Write(raw []byte) (int, error)
}

func NewLane

func NewLane(protoType string, van interface{}) Lane

type QuicLane

type QuicLane struct {
	// contains filtered or unexported fields
}

func NewQuicLane

func NewQuicLane(van interface{}) *QuicLane

func (*QuicLane) Read

func (l *QuicLane) Read(raw []byte) (int, error)

func (*QuicLane) ReadMessage

func (l *QuicLane) ReadMessage(msg *model.Message) error

func (*QuicLane) SetReadDeadline

func (l *QuicLane) SetReadDeadline(t time.Time) error

func (*QuicLane) SetWriteDeadline

func (l *QuicLane) SetWriteDeadline(t time.Time) error

func (*QuicLane) Write

func (l *QuicLane) Write(raw []byte) (int, error)

func (*QuicLane) WriteMessage

func (l *QuicLane) WriteMessage(msg *model.Message) error

type WSLane

type WSLane struct {
	// contains filtered or unexported fields
}

func NewWSLane

func NewWSLane(van interface{}) *WSLane

func (*WSLane) Read

func (l *WSLane) Read(p []byte) (int, error)

func (*WSLane) ReadMessage

func (l *WSLane) ReadMessage(msg *model.Message) error

func (*WSLane) SetReadDeadline

func (l *WSLane) SetReadDeadline(t time.Time) error

func (*WSLane) SetWriteDeadline

func (l *WSLane) SetWriteDeadline(t time.Time) error

func (*WSLane) Write

func (l *WSLane) Write(p []byte) (int, error)

func (*WSLane) WriteMessage

func (l *WSLane) WriteMessage(msg *model.Message) error

type WSLaneWithoutPack

type WSLaneWithoutPack struct {
	// contains filtered or unexported fields
}

func NewWSLaneWithoutPack

func NewWSLaneWithoutPack(van interface{}) *WSLaneWithoutPack

func (*WSLaneWithoutPack) Read

func (l *WSLaneWithoutPack) Read(p []byte) (int, error)

func (*WSLaneWithoutPack) ReadMessage

func (l *WSLaneWithoutPack) ReadMessage(msg *model.Message) error

func (*WSLaneWithoutPack) SetReadDeadline

func (l *WSLaneWithoutPack) SetReadDeadline(t time.Time) error

func (*WSLaneWithoutPack) SetWriteDeadline

func (l *WSLaneWithoutPack) SetWriteDeadline(t time.Time) error

func (*WSLaneWithoutPack) Write

func (l *WSLaneWithoutPack) Write(p []byte) (int, error)

func (*WSLaneWithoutPack) WriteMessage

func (l *WSLaneWithoutPack) WriteMessage(msg *model.Message) error

Jump to

Keyboard shortcuts

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