Connectivity

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnectionLost = errors.New("impossible to reach the wss server")
View Source
var HTTP = H{
	// contains filtered or unexported fields
}
View Source
var Socket = S{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type H

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

func (H) SendRequest

func (c H) SendRequest(b []byte) (msg []byte, err error)

func (H) SendRequestJSON

func (c H) SendRequestJSON(request interface{}, response interface{}, try ...interface{}) (err error)

func (H) SendRequestReader

func (c H) SendRequestReader(json []byte) (io.ReadCloser, error)

type S

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

func (S) SendRequest

func (c S) SendRequest(b []byte) (msg []byte, err error)

func (S) SendRequestJSON

func (c S) SendRequestJSON(request interface{}, response interface{}, try ...interface{}) error

func (S) SendRequestReader

func (c S) SendRequestReader(b []byte) (io.ReadCloser, error)

func (S) StartWebsocket

func (c S) StartWebsocket() (err error)

Jump to

Keyboard shortcuts

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