admin

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: 8 Imported by: 0

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
	NavBuilder     utils.NavBuilder
	SessionManager *rtc.SessionManager
}

DashboardController for Admin Dashboard

func NewDashboardController

func NewDashboardController(sessionManager *rtc.SessionManager, navBuilder utils.NavBuilder) DashboardController

NewDashboardController Controller

func (*DashboardController) Get

Get Handles the GetRequest in this Controller

type SessionsController

type SessionsController struct {
	ViewBasePath   string
	NavBuilder     utils.NavBuilder
	SessionManager *rtc.SessionManager
}

SessionsController for Admin Dashboard

func NewSessionsController

func NewSessionsController(sessionManager *rtc.SessionManager, navBuilder utils.NavBuilder) SessionsController

NewSessionsController Controller

func (*SessionsController) Get

Get Handles the GetRequest in this Controller

type UsersController

type UsersController struct {
	ViewBasePath   string
	NavBuilder     utils.NavBuilder
	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

Jump to

Keyboard shortcuts

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