Documentation
¶
Index ¶
- Variables
- func GetMsgPackDecoder(adaptJSON bool) *msgpack.Decoder
- func GetMsgPackEncoder() *msgpack.Encoder
- func MsgPackMarshal(obj any, adaptJSON bool) ([]byte, error)
- func MsgPackUnmarshal(data []byte, obj any, adaptJSON bool) error
- func PutMsgPackDecoder(decoder *msgpack.Decoder)
- func PutMsgPackEncoder(encoder *msgpack.Encoder)
- type Emitter
- func (e *Emitter) Broadcast() *Emitter
- func (e *Emitter) Close()
- func (e *Emitter) Emit(ctx context.Context, 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) Reset()
- func (e *Emitter) To(room string) *Emitter
- func (e *Emitter) Volatile() *Emitter
- type EmitterSession
- type Options
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetMsgPackDecoder ¶ added in v0.0.5
func GetMsgPackDecoder(adaptJSON bool) *msgpack.Decoder
func GetMsgPackEncoder ¶ added in v0.0.4
func GetMsgPackEncoder() *msgpack.Encoder
func MsgPackUnmarshal ¶ added in v0.0.5
func PutMsgPackDecoder ¶ added in v0.0.5
func PutMsgPackDecoder(decoder *msgpack.Decoder)
func PutMsgPackEncoder ¶ added in v0.0.4
func PutMsgPackEncoder(encoder *msgpack.Encoder)
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter Socket.IO redis base emitter
type EmitterSession ¶ added in v0.0.6
type EmitterSession struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.