Documentation ¶
Index ¶
- Constants
- Variables
- func Connect() error
- func Init(url string)
- func Ping(ctx context.Context) error
- type Config
- type CustomerRoomsInfo
- func (info *CustomerRoomsInfo) Add(ctx context.Context, room string) error
- func (info *CustomerRoomsInfo) Count(ctx context.Context, room string) (int64, error)
- func (info *CustomerRoomsInfo) Delete(ctx context.Context, room string) error
- func (r *CustomerRoomsInfo) GetPath() string
- func (info *CustomerRoomsInfo) Owns(ctx context.Context, room string) (bool, error)
- type Info
- func (info *Info) GetClosedAt(ctx context.Context, t *time.Time) error
- func (info *Info) GetCreatedAt(ctx context.Context, t *time.Time) error
- func (r *Info) GetPath() string
- func (info *Info) ReOpened(ctx context.Context) error
- func (info *Info) SetClosedAt(ctx context.Context, t time.Time) error
- func (info *Info) SetCreatedAt(ctx context.Context, t time.Time) error
- func (info *Info) SetPeer(ctx context.Context, peer string) error
- func (info *Info) SetRoom(ctx context.Context, room string) error
- type Peer
- type Permission
- type Recording
- type RedisDict
- type RedisList
- type RedisSet
- type Room
- type RoomPeersInfo
- func (info *RoomPeersInfo) AddPeer(ctx context.Context, peer string) error
- func (info *RoomPeersInfo) CountPeers(ctx context.Context) (int64, error)
- func (info *RoomPeersInfo) DeletePeer(ctx context.Context, peer string) error
- func (r *RoomPeersInfo) GetPath() string
- func (info *RoomPeersInfo) GetPeer(ctx context.Context, peer string, t *time.Time) error
- type RoomsInfo
- func (info *RoomsInfo) CountPeers(ctx context.Context) (int64, error)
- func (info *RoomsInfo) GetClosedAt(ctx context.Context, t *time.Time) error
- func (info *RoomsInfo) GetCreatedAt(ctx context.Context, t *time.Time) error
- func (info *RoomsInfo) GetOwner(ctx context.Context, owner *string) error
- func (r *RoomsInfo) GetPath() string
- func (info *RoomsInfo) SetClosedAt(ctx context.Context, t time.Time) error
- func (info *RoomsInfo) SetCreatedAt(ctx context.Context, t time.Time) error
- func (info *RoomsInfo) SetOwner(ctx context.Context, owner string) error
- type Session
- type State
- type Stream
- type StreamInfo
- func (info *StreamInfo) GetClosedAt(ctx context.Context, t *time.Time) error
- func (info *StreamInfo) GetCreatedAt(ctx context.Context, t *time.Time) error
- func (r *StreamInfo) GetPath() string
- func (info *StreamInfo) ReOpened(ctx context.Context) error
- func (info *StreamInfo) SetClosedAt(ctx context.Context, t time.Time) error
- func (info *StreamInfo) SetCreatedAt(ctx context.Context, t time.Time) error
- func (info *StreamInfo) SetMedia(ctx context.Context, media string) error
- func (info *StreamInfo) SetPeer(ctx context.Context, peer string) error
- func (info *StreamInfo) SetRoom(ctx context.Context, room string) error
Constants ¶
View Source
const Nil = redis.Nil
Nil ...
Variables ¶
View Source
var ( // RedisObjectSeperator Object separator RedisObjectSeperator = ":" // RedisObjectPrefix Prefix RedisObjectPrefix = "info" )
Functions ¶
Types ¶
type CustomerRoomsInfo ¶
type CustomerRoomsInfo struct {
RedisSet
}
CustomerRoomsInfo ...
func NewCustomerRoomsInfo ¶
func NewCustomerRoomsInfo(id string) *CustomerRoomsInfo
NewCustomerRoomsInfo ...
func (*CustomerRoomsInfo) Add ¶
func (info *CustomerRoomsInfo) Add(ctx context.Context, room string) error
Add add room
type Info ¶
type Info struct {
RedisDict
}
Info ...
func (*Info) GetClosedAt ¶
GetClosedAt check if peer
func (*Info) GetCreatedAt ¶
GetCreatedAt check if peer
func (*Info) SetClosedAt ¶
SetClosedAt add peer
func (*Info) SetCreatedAt ¶
SetCreatedAt add peer
type Permission ¶
Permission peer permission
type Room ¶
type Room struct { ID string Name string Description string CreatedAt time.Time StartedAt time.Time Roles []string // contains filtered or unexported fields }
Room room info
type RoomPeersInfo ¶
type RoomPeersInfo struct {
RedisDict
}
RoomPeersInfo ...
func (*RoomPeersInfo) AddPeer ¶
func (info *RoomPeersInfo) AddPeer(ctx context.Context, peer string) error
AddPeer add peer
func (*RoomPeersInfo) CountPeers ¶
func (info *RoomPeersInfo) CountPeers(ctx context.Context) (int64, error)
CountPeers count rooms
func (*RoomPeersInfo) DeletePeer ¶
func (info *RoomPeersInfo) DeletePeer(ctx context.Context, peer string) error
DeletePeer delete peer
type RoomsInfo ¶
type RoomsInfo struct { RedisDict // contains filtered or unexported fields }
RoomsInfo ...
func (*RoomsInfo) CountPeers ¶
CountPeers count rooms
func (*RoomsInfo) GetClosedAt ¶
GetClosedAt check if peer
func (*RoomsInfo) GetCreatedAt ¶
GetCreatedAt check if peer
func (*RoomsInfo) SetClosedAt ¶
SetClosedAt add peer
func (*RoomsInfo) SetCreatedAt ¶
SetCreatedAt add peer
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream ...
type StreamInfo ¶
type StreamInfo struct {
RedisDict
}
StreamInfo ...
func (*StreamInfo) GetClosedAt ¶
GetClosedAt check if peer
func (*StreamInfo) GetCreatedAt ¶
GetCreatedAt check if peer
func (*StreamInfo) ReOpened ¶
func (info *StreamInfo) ReOpened(ctx context.Context) error
ReOpened check if peer
func (*StreamInfo) SetClosedAt ¶
SetClosedAt add peer
func (*StreamInfo) SetCreatedAt ¶
SetCreatedAt add peer
func (*StreamInfo) SetMedia ¶
func (info *StreamInfo) SetMedia(ctx context.Context, media string) error
SetMedia ...
Click to show internal directories.
Click to hide internal directories.