Documentation
¶
Index ¶
- Constants
- Variables
- type Channel
- type Client
- func (c *Client) Connect(timeout int, interval int, responseMsg Message, connection Connection)
- func (c Client) Id() string
- func (c Client) IsConnected() bool
- func (c Client) IsExpired() bool
- func (c Client) Queue(msg Message)
- func (c Client) QueueMany(msgs []Message)
- func (c *Client) SetConnection(connection Connection)
- type Connection
- type Message
- type MetaChannel
- type MsgStore
- type Session
- type Subscription
Constants ¶
View Source
const ( META_PREFIX string = "/meta/" META_SERVICE = "/service" META_HANDSHAKE_CHANNEL = "handshake" META_SUBSCRIBE_CHANNEL = "subscribe" META_CONNECT_CHANNEL = "connect" META_DISCONNECT_CHANNEL = "disconnect" META_UNKNOWN_CHANNEL = "unknown" )
View Source
const BAYEUX_VERSION = "1.0"
Variables ¶
View Source
var DEFAULT_ADVICE = map[string]string{"reconnect": "retry", "interval": "0", "timeout": "10000"}
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) IsConnected ¶
func (*Client) SetConnection ¶
func (c *Client) SetConnection(connection Connection)
type Connection ¶
type MetaChannel ¶
type MetaChannel interface{}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Connect requests starts a session
func NewSession ¶
type Subscription ¶
type Subscription Channel
Click to show internal directories.
Click to hide internal directories.