Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckMessageFunc ¶
type GetMetricsOptions ¶
type GetMetricsOptions struct {
TopRoomsLimit int
}
type HandleRoomEjectedFunc ¶
type Options ¶
type Options struct {
RedisOptions *redis.Options
ClientTimeout time.Duration
Sync bool
RedisKeyPrefix string
// HandleMessage HandleMessageFunc
HandleRoomEjected HandleRoomEjectedFunc
}
type RedisQueueClient ¶
type RedisQueueClient interface {
Subscribe(ctx context.Context, room string, msgHandlerFunc HandleMessageFunc) error
Unsubscribe(ctx context.Context, room string) error
Close() error
Pong(ctx context.Context) error
GetMetrics(ctx context.Context, options *GetMetricsOptions) (*Metrics, error)
Send(ctx context.Context, room string, data interface{}, priority int) error
SendOutOfBand(ctx context.Context, room string, data interface{}) error
}
type RoomMetrics ¶
Click to show internal directories.
Click to hide internal directories.