app

package
v0.0.0-...-6136325 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Logger is the API Logger Instance

Functions

func RegisterRoutes

func RegisterRoutes(r *mux.Router, sessionManager *rtc.SessionManager, userRepo *mgt.Repository, mw *auth.Middleware)

RegisterRoutes for the API

Types

type SessionController

type SessionController struct {
	TemplateBasePath string
	SessionManager   *rtc.SessionManager
}

SessionController for Admin Dashboard

func NewSessionController

func NewSessionController(sessionManager *rtc.SessionManager) SessionController

NewSessionController Controller

func (*SessionController) GetSession

func (d *SessionController) GetSession(w http.ResponseWriter, r *http.Request)

GetSession Handles the GetRequest to Join a Session

func (*SessionController) PostNewSession

func (d *SessionController) PostNewSession(w http.ResponseWriter, r *http.Request)

PostNewSession Handles the PostRequest to create a new Session

func (*SessionController) PostSDPSession

func (d *SessionController) PostSDPSession(w http.ResponseWriter, r *http.Request)

PostSDPSession Handles the SDP for the Session

type StartController

type StartController struct {
	TemplateBasePath string
	SessionManager   *rtc.SessionManager
}

StartController for Admin Dashboard

func NewStartController

func NewStartController(sessionManager *rtc.SessionManager) StartController

NewStartController Controller

func (*StartController) Get

Get Handles the GetRequest in this Controller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳