api

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEvent

func CreateEvent(c echo.Context) error

func CreateEventTemplate

func CreateEventTemplate(c echo.Context) error

func DecrementEvent

func DecrementEvent(c echo.Context) error

func DeleteEvent

func DeleteEvent(c echo.Context) error

func DeleteEventTemplate

func DeleteEventTemplate(c echo.Context) error

func GenerateXID

func GenerateXID(c echo.Context) error

func GetBankBalance

func GetBankBalance(c echo.Context) error

func GetEmojisHandler

func GetEmojisHandler(c echo.Context) error

func GetEventTemplates

func GetEventTemplates(c echo.Context) error

func GetEvents

func GetEvents(c echo.Context) error

func GetRandomUsers

func GetRandomUsers(c echo.Context) error

func GetUser

func GetUser(c echo.Context) error

func GetUsers

func GetUsers(c echo.Context) error

func IncrementEvent

func IncrementEvent(c echo.Context) error

func Login

func Login(c echo.Context) error

func SetRank

func SetRank(w http.ResponseWriter, r *http.Request)

func UpdateEvent

func UpdateEvent(c echo.Context) error

func UpdateEventTemplate

func UpdateEventTemplate(c echo.Context) error

func UpdateUser

func UpdateUser(c echo.Context) error

Types

type CreateEventResponse

type CreateEventResponse struct {
	Event *e.Event `json:"event"`
}

type CreateEventTemplateResponse

type CreateEventTemplateResponse struct {
	Template *e.Template `json:"template"`
}

type GetBankBalanceResponse

type GetBankBalanceResponse struct {
	Balance int32 `json:"balance"`
}

type GetEmojisResponse

type GetEmojisResponse struct {
	Emojis []*discordgo.Emoji `json:"emojis"`
}

type Position

type Position struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	Max      int32  `json:"max"`
	MinRank  int32  `json:"min_rank"`
	Emoji    string `json:"emoji"`
	Order    int32  `json:"order"`
	FillLast bool   `json:"fill_last"`
}

Jump to

Keyboard shortcuts

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