controllers

package
v0.0.0-...-177b763 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	// contains filtered or unexported fields
}

AdminController manages browser requests for admin pages

func NewAdminController

func NewAdminController(db *gorm.DB) *AdminController

NewAdminController creates a new instance

func (AdminController) ShowAdminPage

func (gc AdminController) ShowAdminPage(c *gin.Context)

ShowAdminPage either shows the login page or the admin panel, depending on whether the user is logged in and has access to the group

type PageController

type PageController struct {
	// contains filtered or unexported fields
}

PageController manages browser requests related to group pages

func NewPageController

func NewPageController(db *gorm.DB) *PageController

NewPageController creates a new instance

func (PageController) ShowGroupPage

func (gc PageController) ShowGroupPage(c *gin.Context)

ShowGroupPage shows the group page, which will use its front-end to make api requests for loading the appropriate data

Jump to

Keyboard shortcuts

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