gorillaws2netconn

package module
v0.0.0-...-09bb042 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

README

gorillaws2netconn

A wrapper Implemented net.Conn for gorilla websocket

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetConn4Gorilla

type NetConn4Gorilla struct {
	WS *websocket.Conn

	WriteMessageType int
	// contains filtered or unexported fields
}

func (*NetConn4Gorilla) Close

func (c *NetConn4Gorilla) Close() error

func (*NetConn4Gorilla) LocalAddr

func (c *NetConn4Gorilla) LocalAddr() net.Addr

func (*NetConn4Gorilla) Read

func (c *NetConn4Gorilla) Read(b []byte) (int, error)

func (*NetConn4Gorilla) RemoteAddr

func (c *NetConn4Gorilla) RemoteAddr() net.Addr

func (*NetConn4Gorilla) SetDeadline

func (c *NetConn4Gorilla) SetDeadline(t time.Time) (err error)

func (*NetConn4Gorilla) SetReadDeadline

func (c *NetConn4Gorilla) SetReadDeadline(t time.Time) error

func (*NetConn4Gorilla) SetWriteDeadline

func (c *NetConn4Gorilla) SetWriteDeadline(t time.Time) error

func (*NetConn4Gorilla) Write

func (c *NetConn4Gorilla) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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