io

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudHubIO

type CloudHubIO interface {
	SetReadDeadline(time.Time) error
	SetWriteDeadline(time.Time) error
	ReadData(interface{}) (int, error)
	WriteData(interface{}) error
	Close() error
}

CloudHubIO handle the IO operation from connection

type JSONQuicIO added in v1.0.0

type JSONQuicIO struct {
	Connection conn.Connection
}

func (*JSONQuicIO) Close added in v1.0.0

func (quicio *JSONQuicIO) Close() error

func (*JSONQuicIO) ReadData added in v1.0.0

func (quicio *JSONQuicIO) ReadData(d interface{}) (int, error)

func (*JSONQuicIO) SetReadDeadline added in v1.0.0

func (quicio *JSONQuicIO) SetReadDeadline(time time.Time) error

func (*JSONQuicIO) SetWriteDeadline added in v1.0.0

func (quicio *JSONQuicIO) SetWriteDeadline(time time.Time) error

func (*JSONQuicIO) WriteData added in v1.0.0

func (quicio *JSONQuicIO) WriteData(d interface{}) error

type JSONWSIO

type JSONWSIO struct {
	WSConn *websocket.Conn
}

JSONWSIO address the json data from connection

func (*JSONWSIO) Close

func (io *JSONWSIO) Close() error

Close close the IO operation

func (*JSONWSIO) ReadData

func (io *JSONWSIO) ReadData(d interface{}) (int, error)

ReadData read data from connection

func (*JSONWSIO) SetReadDeadline

func (io *JSONWSIO) SetReadDeadline(time time.Time) error

SetReadDeadline set read operation dead line

func (*JSONWSIO) SetWriteDeadline

func (io *JSONWSIO) SetWriteDeadline(time time.Time) error

SetWriteDeadline set write operation dead line

func (*JSONWSIO) WriteData

func (io *JSONWSIO) WriteData(d interface{}) error

WriteData write data to connection

Jump to

Keyboard shortcuts

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