io

package
v0.3.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 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(interface{}) (int, error)
	WriteData(interface{}) error
	Close() error
}

CloudHubIO handle the IO operation from connection

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