client

package
v0.0.0-...-2e4994d Latest Latest
Warning

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

Go to latest
Published: May 14, 2014 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SEND_BUFFER_SIZE = 10
	RECV_BUFFER_SIZE = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsocketClient

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

func NewWebsocketClient

func NewWebsocketClient(logger *pct.Logger, api pct.APIConnector, link string) (*WebsocketClient, error)

func (*WebsocketClient) Conn

func (c *WebsocketClient) Conn() *websocket.Conn

func (*WebsocketClient) Connect

func (c *WebsocketClient) Connect()

func (*WebsocketClient) ConnectChan

func (c *WebsocketClient) ConnectChan() chan bool

func (*WebsocketClient) ConnectOnce

func (c *WebsocketClient) ConnectOnce() error

func (*WebsocketClient) Disconnect

func (c *WebsocketClient) Disconnect() error

func (*WebsocketClient) ErrorChan

func (c *WebsocketClient) ErrorChan() chan error

func (*WebsocketClient) Recv

func (c *WebsocketClient) Recv(data interface{}, timeout uint) error

func (*WebsocketClient) RecvChan

func (c *WebsocketClient) RecvChan() chan *proto.Cmd

func (*WebsocketClient) Send

func (c *WebsocketClient) Send(data interface{}, timeout uint) error

func (*WebsocketClient) SendBytes

func (c *WebsocketClient) SendBytes(data []byte) error

func (*WebsocketClient) SendChan

func (c *WebsocketClient) SendChan() chan *proto.Reply

func (*WebsocketClient) Start

func (c *WebsocketClient) Start()

func (*WebsocketClient) Status

func (c *WebsocketClient) Status() map[string]string

func (*WebsocketClient) Stop

func (c *WebsocketClient) Stop()

Jump to

Keyboard shortcuts

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