controllers

package
v0.0.0-...-1ee08a6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red   = "\033[31m"
	Reset = "\033[0m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	AppData *model.App
}

func NewController

func NewController(appData *model.App) *Controller

func (*Controller) CreateGuildEvent

func (con *Controller) CreateGuildEvent(c *gin.Context)

func (*Controller) ErrorResponseWithUUID

func (c *Controller) ErrorResponseWithUUID(ctx *gin.Context, errorCode int, err error, message string)

func (*Controller) GetDefault

func (con *Controller) GetDefault(c *gin.Context)

func (*Controller) GetGuildEvent

func (con *Controller) GetGuildEvent(c *gin.Context)

func (*Controller) GetGuildEvents

func (con *Controller) GetGuildEvents(c *gin.Context)

func (*Controller) GetUser

func (con *Controller) GetUser(c *gin.Context)

func (*Controller) GetUsers

func (con *Controller) GetUsers(c *gin.Context)

func (*Controller) PostUsers

func (con *Controller) PostUsers(c *gin.Context)

func (*Controller) TokenAuthMiddleware

func (con *Controller) TokenAuthMiddleware(appData *model.App) gin.HandlerFunc

func (*Controller) ValidateToken

func (c *Controller) ValidateToken(ctx *gin.Context, appData *model.App, service string) (string, bool)

Jump to

Keyboard shortcuts

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