MCPcopy Create free account
hub / github.com/gogs/gogs / Name

Method Name

internal/database/webhook.go:387–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385}
386
387func (t HookTaskType) Name() string {
388 switch t {
389 case GOGS:
390 return "gogs"
391 case SLACK:
392 return "slack"
393 case DISCORD:
394 return "discord"
395 case DINGTALK:
396 return "dingtalk"
397 }
398 return ""
399}
400
401// IsValidHookTaskType returns true if given name is a valid hook task type.
402func IsValidHookTaskType(name string) bool {

Callers 15

FileNamesFunction · 0.45
GetMethod · 0.45
InitFunction · 0.45
checkInvalidOptionsFunction · 0.45
writeTmpKeyFileFunction · 0.45
UploadMethod · 0.45
addCustomDirToBackupFunction · 0.45
adminDashboardOperationFunction · 0.45
renderWikiPageFunction · 0.45
WikiPagesFunction · 0.45
editFileFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestIsSymlinkFunction · 0.36