webhook

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANY_HOOK         string = "any"
	NEW_ROUND_HOOK   string = "new_round"
	SUBMIT_FLAG_HOOK string = "submit_flag"
	CHECK_DOWN_HOOK  string = "check_down"
	BEGIN_HOOK       string = "game_begin"
	PAUSE_HOOK       string = "game_pause"
	END_HOOK         string = "game_end"
)

Variables

This section is empty.

Functions

func Add

func Add(webHookType string, webHookData interface{})

Add used to add a webhook.

func DeleteWebHook

func DeleteWebHook(c *gin.Context) (int, interface{})

func EditWebHook

func EditWebHook(c *gin.Context) (int, interface{})

func GetWebHook

func GetWebHook(c *gin.Context) (int, interface{})

func NewWebHook

func NewWebHook(c *gin.Context) (int, interface{})

func RefreshWebHookStore

func RefreshWebHookStore()

Types

This section is empty.

Jump to

Keyboard shortcuts

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