Documentation
¶
Index ¶
- Variables
- type Connection
- func (c *Connection) Close()
- func (c *Connection) Debug(v ...interface{})
- func (c *Connection) DebugSpew(v ...interface{})
- func (c *Connection) Error(v ...interface{})
- func (c *Connection) GetParams() map[string]string
- func (c *Connection) GetRef(topic *string) *string
- func (c *Connection) Info(v ...interface{})
- func (c *Connection) Reading() chan *client.Message
- func (c *Connection) Reconnect(params map[string]string) error
- func (c *Connection) Send(ref *string, msg *client.Message) chan interface{}
- func (c *Connection) Start(sub *Subscriber) error
- func (c *Connection) Subscribe(sub *Subscriber) error
- func (c *Connection) UnSubscribe(topic string)
- func (c *Connection) Warn(v ...interface{})
- type MsgSender
- type Resp
- type Result
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeOut = fmt.Errorf("connection Timeout")
ErrTimeOut linter
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection linter
func NewConnection ¶
func NewConnection(id, nodeID, token, url string, params map[string]string) *Connection
NewConnection connecting to signal with give url, callback to handle internal data from signal
func (*Connection) Reconnect ¶
func (c *Connection) Reconnect(params map[string]string) error
Reconnect linter
func (*Connection) Send ¶
func (c *Connection) Send(ref *string, msg *client.Message) chan interface{}
Send return a ref
func (*Connection) Subscribe ¶
func (c *Connection) Subscribe(sub *Subscriber) error
Subscribe linter
type MsgSender ¶
type MsgSender struct {
// contains filtered or unexported fields
}
MsgSender linter
Click to show internal directories.
Click to hide internal directories.