Documentation ¶
Index ¶
- Constants
- Variables
- type Advice
- type Channel
- type Client
- func (c *Client) Close()
- func (c *Client) Connect(timeout int, interval int, responseMsg Message, connection Connection)
- func (c *Client) Id() uint32
- func (c *Client) ResetCounters() ClientCounters
- func (c *Client) Send(msg Message, jsonp string) bool
- func (c *Client) SetConnection(connection Connection)
- func (c *Client) ShouldReap() bool
- func (c *Client) Subscribe(patterns []string)
- func (c *Client) Subscriptions() []string
- func (c *Client) Unsubscribe(patterns []string)
- type ClientCounters
- type Connection
- type Message
- type MetaChannel
- type Subscription
Constants ¶
View Source
const ( MetaPrefix string = "/meta/" MetaService = "/service" MetaHandshakeChannel = "handshake" MetaSubscribeChannel = "subscribe" MetaUnsubscribeChannel = "unsubscribe" MetaConnectChannel = "connect" MetaDisconnectChannel = "disconnect" MetaUnknownChannel = "unknown" )
View Source
const BayeuxVersion = "1.0"
Variables ¶
View Source
var DefaultAdvice = Advice{Reconnect: "retry", Interval: 0, Timeout: 25000}
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func NewChannel ¶
func (Channel) Expand ¶
Returns all the channels patterns that could match this channel
For: /foo/bar We should return these: /** /foo/** /foo/* /foo/bar
func (Channel) MetaType ¶
func (c Channel) MetaType() MetaChannel
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Connect ¶
func (c *Client) Connect(timeout int, interval int, responseMsg Message, connection Connection)
func (*Client) ResetCounters ¶
func (c *Client) ResetCounters() ClientCounters
func (*Client) SetConnection ¶
func (c *Client) SetConnection(connection Connection)
func (*Client) ShouldReap ¶
func (*Client) Subscriptions ¶
func (*Client) Unsubscribe ¶
type ClientCounters ¶
type Connection ¶
type MetaChannel ¶
type MetaChannel interface{}
type Subscription ¶
type Subscription Channel
Click to show internal directories.
Click to hide internal directories.