Documentation ¶
Index ¶
- type Emitter
- func (e *Emitter) Broadcast() *Emitter
- func (e *Emitter) Close()
- func (e *Emitter) Emit(data ...interface{}) (*Emitter, error)
- func (e *Emitter) In(room string) *Emitter
- func (e *Emitter) JSON() *Emitter
- func (e *Emitter) Of(namespace string) *Emitter
- func (e *Emitter) To(room string) *Emitter
- func (e *Emitter) Volatile() *Emitter
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter Socket.IO redis base emitter
type Options ¶
type Options struct { // host to connect to redis on (localhost) Host string // port to connect to redis on (6379) Port int // password to connect to redis Password string // DB DB int // the name of the key to pub/sub events on as prefix (socket.io) Key string // unix domain socket to connect to redis on ("/tmp/redis.sock") Socket string // redis client Redis *redis.Client }
Options ...
Click to show internal directories.
Click to hide internal directories.