webhooks

package
v0.0.0-...-ed41999 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
)

Variables

This section is empty.

Functions

func InitializeWebhooks

func InitializeWebhooks()

func SendBackupWebhook

func SendBackupWebhook(successful bool, failureError ...error) error

func SendClanFirstPlaceWebhook

func SendClanFirstPlaceWebhook(clan *db.Clan, mapQua *db.MapQua, newScore *db.ClanScore, oldScore *db.ClanScore) error

func SendClanRankedWebhook

func SendClanRankedWebhook(mapQua *db.MapQua) error

func SendCrashLogWebhook

func SendCrashLogWebhook(user *db.User, log *db.CrashLog) error

func SendErrorEventWebhook

func SendErrorEventWebhook(title string, message string) error

SendErrorEventWebhook Sends a webhook to the events channel with a custom message

func SendOrderWebhook

func SendOrderWebhook(purchasedOrders []*db.Order) error

func SendQueueSubmitWebhook

func SendQueueSubmitWebhook(user *db.User, mapset *db.Mapset) error

SendQueueSubmitWebhook Sends a webhook displaying that the user submitted a mapset to the ranking queue

func SendQueueWebhook

func SendQueueWebhook(user *db.User, mapset *db.Mapset, action db.RankingQueueAction) error

SendQueueWebhook Sends a ranking queue webhook

func SendRankedWebhook

func SendRankedWebhook(mapset *db.Mapset, votes []*db.MapsetRankingQueueComment) error

SendRankedWebhook Sends a webhook that a new mapset was ranked

func SendSupervisorActivityWebhook

func SendSupervisorActivityWebhook(results map[*db.User]int, timeStart int64, timeEnd int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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