room

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL