Documentation ¶
Index ¶
- type Config
- type Conn
- func (c *Conn) ClientIP() string
- func (c *Conn) ConnID() uint64
- func (c *Conn) Get(key string) interface{}
- func (c *Conn) Persistent() bool
- func (c *Conn) Pop() *rony.MessageEnvelope
- func (c *Conn) Push(m *rony.MessageEnvelope)
- func (c *Conn) SendBinary(streamID int64, data []byte) error
- func (c *Conn) Set(key string, val interface{})
- func (c *Conn) SetPersistent(b bool)
- type Gateway
- func (g *Gateway) Addr() []string
- func (g *Gateway) CloseConn(connID uint64)
- func (g *Gateway) GetConn(connID uint64) gateway.Conn
- func (g *Gateway) OpenConn(connID uint64, ...)
- func (g *Gateway) Run()
- func (g *Gateway) SendToConn(connID uint64, streamID int64, data []byte, kvs ...gateway.KeyValue)
- func (g *Gateway) Shutdown()
- func (g *Gateway) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Persistent ¶
func (*Conn) Pop ¶
func (c *Conn) Pop() *rony.MessageEnvelope
func (*Conn) Push ¶
func (c *Conn) Push(m *rony.MessageEnvelope)
func (*Conn) SetPersistent ¶
type Gateway ¶
type Gateway struct { gateway.ConnectHandler gateway.MessageHandler gateway.CloseHandler // contains filtered or unexported fields }
func (*Gateway) SendToConn ¶
Click to show internal directories.
Click to hide internal directories.