controllers

package
v0.0.0-...-c6ebbac Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MPL-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessInfo

func AccessInfo(c *gin.Context)

File: ConfidentialInfoController

func BanUser

func BanUser(c *gin.Context)

File: ModeratorActivityController

func CreateBanner

func CreateBanner(c *gin.Context)

File: ConfidentialInfoController

func CreateNewUser

func CreateNewUser(c *gin.Context)

File: UserCreationController

func DeleteAll

func DeleteAll(c *gin.Context)

File: ModeratorActivityController

func DeleteIndividual

func DeleteIndividual(c *gin.Context)

File: ModeratorActivityController

func GenerateAdJSON

func GenerateAdJSON(c *gin.Context)

File: PageGenerationController

func GenerateAdPage

func GenerateAdPage(c *gin.Context)

File: PageGenerationController

func GetAllBanners

func GetAllBanners(c *gin.Context)

File: ModeratorActivityController

func GetLimitedInfo

func GetLimitedInfo(c *gin.Context)
File: PageGenerationController

return info limited to entries not created by shadow banned users

func LoginUser

func LoginUser(domain string) gin.HandlerFunc
File: UserSignInController

used on both sign in and creation

func RedirectSiteRequest

func RedirectSiteRequest(c *gin.Context)

File: RedirectController

func RejectUserCreation

func RejectUserCreation(c *gin.Context)

File: UserCreationController

func RemoveBanner

func RemoveBanner(c *gin.Context)

File: ConfidentialInfoController

func TestToken

func TestToken(domain string) gin.HandlerFunc
File: UserSignInController

test a token if authenticated

Types

type ControllerSettings

type ControllerSettings struct {
	// minutes
	FreeMode         bool
	AccountInterval  int64
	BannerInterval   int64
	AttemptInterval  int64
	MaxAttempts      int
	PublicPath       string
	MaxFileSize      int64
	SmallDimensionsX int
	SmallDimensionsY int
	WideDimensionsX  int
	WideDimensionsY  int
	RestrictedBoards []string
	ValidBoards      []string
}

type Login

type Login struct {
	Name         string `json:"name"`
	Pass         string `json:"pass"`
	Pass_Confirm string `json:"pass_confirmation"`
	Token        string `json:"token"`
}

type ModAction

type ModAction struct {
	Name   string `json:"name"`
	Target string `json:"target"`
	URI    string `json:"uri"`
	URL    string `json:"url"`
	Hard   *int   `json:"hard"`
}

type UserRemoval

type UserRemoval struct {
	URI string `json:"uri"`
}

Jump to

Keyboard shortcuts

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