moderatorController

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 23 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIMassMod

func APIMassMod(c *gin.Context)

APIMassMod : This function is used on the frontend for the mass

Query is: action=status|delete|owner|category|multiple
* Needed: torrent_id[] Ids of torrents in checkboxes of name torrent_id
*
* Needed on context:
* status=0|1|2|3|4 according to config/find.go (can be omitted if action=delete|owner|category|multiple)
* owner is the User ID of the new owner of the torrents (can be omitted if action=delete|status|category|multiple)
* category is the category string (eg. 1_3) of the new category of the torrents (can be omitted if action=delete|status|owner|multiple)
*
* withreport is the bool to enable torrent reports deletion (can be omitted)
*
* In case of action=multiple, torrents can be at the same time changed status, owner and category

func CommentDeleteModPanel

func CommentDeleteModPanel(c *gin.Context)

CommentDeleteModPanel : Controller for deleting a comment

func CommentsListPanel

func CommentsListPanel(c *gin.Context)

CommentsListPanel : Controller for listing comments, can accept pages and userID

func DeletedTorrentsModPanel

func DeletedTorrentsModPanel(c *gin.Context)

DeletedTorrentsModPanel : Controller for viewing deleted torrents, accept common search arguments

func DeletedTorrentsPostPanel

func DeletedTorrentsPostPanel(c *gin.Context)

DeletedTorrentsPostPanel : Controller for viewing deleted torrents after a mass update, accept common search arguments

func ExecuteReassign

func ExecuteReassign(f *torrentValidator.ReassignForm) (int, error)

ExecuteAction : Function for applying the changes from ReassignForm

func IndexModPanel

func IndexModPanel(c *gin.Context)

IndexModPanel : Controller for showing index page of Mod Panel

func TorrentBlockModPanel

func TorrentBlockModPanel(c *gin.Context)

TorrentBlockModPanel : Controller to lock torrents, redirecting to previous page

func TorrentDeleteModPanel

func TorrentDeleteModPanel(c *gin.Context)

TorrentDeleteModPanel : Controller for deleting a torrent

func TorrentEditModPanel

func TorrentEditModPanel(c *gin.Context)

TorrentEditModPanel : Controller for editing a torrent after GET request

func TorrentPostEditModPanel

func TorrentPostEditModPanel(c *gin.Context)

TorrentPostEditModPanel : Controller for editing a torrent after POST request

func TorrentPostReassignModPanel

func TorrentPostReassignModPanel(c *gin.Context)

TorrentPostReassignModPanel : Controller for reassigning a torrent, after POST request

func TorrentReassignModPanel

func TorrentReassignModPanel(c *gin.Context)

TorrentReassignModPanel : Controller for reassigning a torrent, after GET request

func TorrentReportDeleteModPanel

func TorrentReportDeleteModPanel(c *gin.Context)

TorrentReportDeleteModPanel : Controller for deleting a torrent report

func TorrentReportListPanel

func TorrentReportListPanel(c *gin.Context)

TorrentReportListPanel : Controller for listing torrent reports, can accept pages

func TorrentsListPanel

func TorrentsListPanel(c *gin.Context)

TorrentsListPanel : Controller for listing torrents, can accept common search arguments

func TorrentsPostListPanel

func TorrentsPostListPanel(c *gin.Context)

TorrentsPostListPanel : Controller for listing torrents, after POST request when mass update

func UsersListPanel

func UsersListPanel(c *gin.Context)

UsersListPanel : Controller for listing users, can accept pages

Types

This section is empty.

Jump to

Keyboard shortcuts

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