io

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 3 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(*model.Message) (int, error)
	WriteData(*model.Message) error
	Close() error
}

CloudHubIO handle the IO operation from connection

type JSONIO added in v1.6.1

type JSONIO struct {
	Connection conn.Connection
}

JSONIO address the json data from connection

func (*JSONIO) Close added in v1.6.1

func (io *JSONIO) Close() error

Close close the IO operation

func (*JSONIO) ReadData added in v1.6.1

func (io *JSONIO) ReadData(msg *model.Message) (int, error)

ReadData read data from connection

func (*JSONIO) SetReadDeadline added in v1.6.1

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

SetReadDeadline set read operation dead line

func (*JSONIO) SetWriteDeadline added in v1.6.1

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

SetWriteDeadline set write operation dead line

func (*JSONIO) WriteData added in v1.6.1

func (io *JSONIO) WriteData(msg *model.Message) error

WriteData write data to connection

Jump to

Keyboard shortcuts

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