Documentation ¶
Index ¶
- func AccessInfo(c *gin.Context)
- func BanUser(c *gin.Context)
- func CreateBanner(c *gin.Context)
- func CreateNewUser(c *gin.Context)
- func DeleteAll(c *gin.Context)
- func DeleteIndividual(c *gin.Context)
- func GenerateAdJSON(c *gin.Context)
- func GenerateAdPage(c *gin.Context)
- func GetAllBanners(c *gin.Context)
- func GetLimitedInfo(c *gin.Context)
- func LoginUser(domain string) gin.HandlerFunc
- func RedirectSiteRequest(c *gin.Context)
- func RejectUserCreation(c *gin.Context)
- func RemoveBanner(c *gin.Context)
- func TestToken(domain string) gin.HandlerFunc
- type ControllerSettings
- type Login
- type ModAction
- type UserRemoval
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLimitedInfo ¶
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 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 UserRemoval ¶
type UserRemoval struct {
URI string `json:"uri"`
}
Click to show internal directories.
Click to hide internal directories.