Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(r *mux.Router, sessionManager *rtc.SessionManager, userRepo *mgt.Repository, mw *auth.Middleware)
RegisterRoutes for Admin Package
Types ¶
type DashboardController ¶
type DashboardController struct { ViewBasePath string SessionManager *rtc.SessionManager }
DashboardController for Admin Dashboard
func NewDashboardController ¶
func NewDashboardController(sessionManager *rtc.SessionManager, navBuilder utils.NavBuilder) DashboardController
NewDashboardController Controller
func (*DashboardController) Get ¶
func (d *DashboardController) Get(w http.ResponseWriter, r *http.Request)
Get Handles the GetRequest in this Controller
type SessionsController ¶
type SessionsController struct { ViewBasePath string SessionManager *rtc.SessionManager }
SessionsController for Admin Dashboard
func NewSessionsController ¶
func NewSessionsController(sessionManager *rtc.SessionManager, navBuilder utils.NavBuilder) SessionsController
NewSessionsController Controller
func (*SessionsController) Get ¶
func (d *SessionsController) Get(w http.ResponseWriter, r *http.Request)
Get Handles the GetRequest in this Controller
type UsersController ¶
type UsersController struct { ViewBasePath string SessionManager *rtc.SessionManager UserRepository mgt.Repository }
UsersController for Admin Dashboard
func NewUsersController ¶
func NewUsersController(sessionManager *rtc.SessionManager, navBuilder utils.NavBuilder, userRepo mgt.Repository) UsersController
NewUsersController Controller
func (*UsersController) GetList ¶
func (d *UsersController) GetList(w http.ResponseWriter, r *http.Request)
GetList Handles the GetRequest in this Controller
func (*UsersController) GetUser ¶
func (d *UsersController) GetUser(w http.ResponseWriter, r *http.Request)
GetUser Handles the GetRequest in this Controller
func (*UsersController) PostUser ¶
func (d *UsersController) PostUser(w http.ResponseWriter, r *http.Request)
PostUser Handles the PostRequest in this Controller
Click to show internal directories.
Click to hide internal directories.