Documentation ¶
Index ¶
Constants ¶
View Source
const DASHBOARD_WS_URL = "%s://%s:%s/room/%s/dashboard"
View Source
const DEFAULT_SERVER_ADDRESS = "localhost"
View Source
const DEFAULT_WEBSOCKET_PORT = "8000"
View Source
const PROTOCOL_WEBSOCKET = "ws"
View Source
const PROTOCOL_WEBSOCKET_OVER_TLS = "wss"
View Source
const ROOM_WS_URL = "%s://%s:%s/room/%s/app/%d"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomService ¶
type RoomService interface { GetDashboardConn(instanceID string) (WSURLResponse, error) GetAppRoomConn(instanceID string, roomID int) (WSURLResponse, error) }
type RoomServiceImpl ¶
type RoomServiceImpl struct {
// contains filtered or unexported fields
}
func NewRoomServiceImpl ¶
func NewRoomServiceImpl(logger *zap.SugaredLogger) *RoomServiceImpl
func (*RoomServiceImpl) GetAppRoomConn ¶
func (impl *RoomServiceImpl) GetAppRoomConn(instanceID string, roomID int) (WSURLResponse, error)
func (*RoomServiceImpl) GetDashboardConn ¶
func (impl *RoomServiceImpl) GetDashboardConn(instanceID string) (WSURLResponse, error)
type WSURLResponse ¶
type WSURLResponse struct {
WSURL string `json:"wsURL"`
}
Click to show internal directories.
Click to hide internal directories.