controller

package
v0.0.0-...-b84af7b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ban

func Ban(c *gin.Context)

Ban endpoint.

func BanReasons

func BanReasons(c *gin.Context)

BanReasons endpoint.

func Categories

func Categories(c *gin.Context)

Categories paginated fetch.

func Comments

func Comments(c *gin.Context)

Comments paginated fetch.

func DeleteComment

func DeleteComment(c *gin.Context)

DeleteComment endpoint handler.

func Flag

func Flag(c *gin.Context)

Flag status request.

func FlagReasons

func FlagReasons(c *gin.Context)

FlagReasons endpoint.

func HomePage

func HomePage(c *gin.Context)

HomePage is the site's entry point.

func NewComment

func NewComment(c *gin.Context)

NewComment pushes a new reply.

func NewFlag

func NewFlag(c *gin.Context)

NewFlag endpoint.

func Notifications

func Notifications(c *gin.Context)

Notifications from current authenticated user.

func PostPage

func PostPage(c *gin.Context)
func RecoveryLink(c *gin.Context)

RecoveryLink handler. Validates and performs proper flow forwards.

func SearchUsers

func SearchUsers(c *gin.Context)

func UpdateComment

func UpdateComment(c *gin.Context)

UpdateComment pushes a new reply.

func UpdateConfig

func UpdateConfig(c *gin.Context)

UpdateConfig from running anzu.

func UpdatePost

func UpdatePost(c *gin.Context)

UpdatePost pushes a new reply.

func UpsertReaction

func UpsertReaction(c *gin.Context)

UpsertReaction realted to a reactable.

func UserPage

func UserPage(c *gin.Context)

func Users

func Users(c *gin.Context)

Users paginated fetch.

Types

type ConfigUpdate

type ConfigUpdate struct {
	Section string                 `json:"section" binding:"required"`
	Changes map[string]interface{} `json:"changes" binding:"required"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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