Documentation ¶
Index ¶
- type Live
- type LiveRedis
- func (l *LiveRedis) AddLiveRoomCache(ctx context.Context, room *base.Room) error
- func (l *LiveRedis) DeleteLiveRoomCache(ctx context.Context, id int64) error
- func (l *LiveRedis) GetLiveRoomCache(ctx context.Context, id int64) (*base.Room, error)
- func (l *LiveRedis) GetLiveRoomIsLiveCache(ctx context.Context, id int64) (bool, error)
- func (l *LiveRedis) GetLiveRoomOwnerCache(ctx context.Context, id int64) (int64, error)
- func (l *LiveRedis) StopLive(ctx context.Context, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Live ¶
type Live struct {
// contains filtered or unexported fields
}
func (*Live) GetOnlineLiveRooms ¶
func (*Live) TagStopLiveRoom ¶
type LiveRedis ¶
type LiveRedis struct {
// contains filtered or unexported fields
}
func NewLiveRedis ¶
func NewLiveRedis(rd *redis.Client) *LiveRedis
func (*LiveRedis) AddLiveRoomCache ¶
func (*LiveRedis) DeleteLiveRoomCache ¶
func (*LiveRedis) GetLiveRoomCache ¶
func (*LiveRedis) GetLiveRoomIsLiveCache ¶
func (*LiveRedis) GetLiveRoomOwnerCache ¶
Click to show internal directories.
Click to hide internal directories.