MCPcopy Create free account

hub / github.com/gotify/server / functions

Functions910 in github.com/gotify/server

↓ 7 callersMethodUpdatePluginConf
(p *model.PluginConf)
plugin/manager.go:30
↓ 7 callersFunctionauthed
(children: React.ReactNode)
ui/src/layout/Layout.tsx:88
↓ 7 callersFunctiondoRequestAndExpect
(t *testing.T, req *http.Request, code int, json string)
router/router_test.go:411
↓ 7 callersFunctionhasUser
(name: string, isAdmin: boolean, row: number)
ui/src/tests/user.test.ts:57
↓ 7 callersFunctionintPtr
(x int)
api/message_test.go:555
↓ 7 callersMethodwithURL
(scheme, host, path, query string)
api/message_test.go:550
↓ 6 callersMethodClose
Close closes the gorm database connection.
database/database.go:149
↓ 6 callersMethodDisablePlugin
DisablePlugin disables a plugin. swagger:operation POST /plugin/{id}/disable plugin disablePlugin Disable a plugin. --- consumes: [application/jso
api/plugin.go:182
↓ 6 callersMethodEnablePlugin
EnablePlugin enables a plugin. swagger:operation POST /plugin/{id}/enable plugin enablePlugin Enable a plugin. --- consumes: [application/json] p
api/plugin.go:124
↓ 6 callersFunctionGet
Get returns the configuration extracted from env variables or config file.
config/config.go:68
↓ 6 callersMethodGetApplicationsByUser
(userID uint)
api/application.go:23
↓ 6 callersMethodGetPluginConfByUser
(userid uint)
api/plugin.go:19
↓ 6 callersFunctionGetProjectDir
GetProjectDir returns the correct absolute path of this project.
test/filepath.go:11
↓ 6 callersFunctionJSONEquals
JSONEquals asserts the content of the string with the encoded json of the provided instance.
test/asserts.go:22
↓ 6 callersMethodNewUser
NewUser creates a user and returns the user.
test/testdb/database.go:54
↓ 6 callersMethodSendMessage
SendMessage see plugin.MessageHandler
plugin/compat/instance.go:76
↓ 6 callersMethodSetCapability
SetCapability changes the capability of this plugin
plugin/testing/mock/mock.go:120
↓ 6 callersMethodValidateAndSetConfig
ValidateAndSetConfig see Configurer
plugin/compat/instance.go:36
↓ 6 callersFunctiongetIntPart
(key string)
fracdex/fracdex.go:184
↓ 6 callersFunctioninDetailPage
(id: number, callback: () => Promise<void>)
ui/src/tests/plugin.test.ts:69
↓ 6 callersFunctionstaticUserID
()
api/stream/stream_test.go:606
↓ 6 callersFunctiontoExternalMessages
(msg []*model.Message)
api/message.go:425
↓ 6 callersFunctionwaitforApp
(name: string, description: string, row: number)
ui/src/tests/application.test.ts:33
↓ 6 callersMethodwithFormData
(formData string)
api/client_test.go:226
↓ 5 callersMethodAppWithTokenAndName
AppWithTokenAndName creates an application with a token and name and returns a message builder.
test/testdb/database.go:111
↓ 5 callersMethodAssertClientNotExist
AssertClientNotExist asserts that the client does not exist.
test/testdb/database.go:201
↓ 5 callersMethodAssertMessageNotExist
AssertMessageNotExist asserts that the messages does not exist.
test/testdb/database.go:208
↓ 5 callersMethodCountUser
(condition ...interface{})
api/user.go:22
↓ 5 callersMethodDeleteApplication
DeleteApplication deletes an application by its id. swagger:operation DELETE /application/{id} application deleteApp Delete an application. --- co
api/application.go:184
↓ 5 callersMethodGetClientByToken
(token string)
api/client.go:14
↓ 5 callersMethodGetConfig
GetConfig returns Configurer plugin configuration in YAML format. swagger:operation GET /plugin/{id}/config plugin getPluginConfig Get YAML configura
api/plugin.go:303
↓ 5 callersMethodGetMessages
GetMessages returns all messages from a user. swagger:operation GET /message message getMessages Return all messages. --- produces: [application/j
api/message.go:89
↓ 5 callersMethodGetMessagesByUserSince
(userID uint, limit int, since uint)
api/message.go:21
↓ 5 callersMethodGetMessagesWithApplication
GetMessagesWithApplication returns all messages from a specific application. swagger:operation GET /application/{id}/message message getAppMessages R
api/message.go:180
↓ 5 callersMethodGetPluginConfByToken
(token string)
auth/authentication.go:21
↓ 5 callersFunctionIsDev
IsDev returns true if the current mode is dev mode.
mode/mode.go:28
↓ 5 callersMethodLoad
()
plugin/compat/instance.go:82
↓ 5 callersMethodNewClientWithToken
NewClientWithToken creates a client with a token and returns the client.
test/testdb/database.go:160
↓ 5 callersMethodUpdateClient
(client *model.Client)
api/client.go:18
↓ 5 callersMethodUpdateUserByID
UpdateUserByID updates and user by id swagger:operation POST /user/{id} user updateUser Update a user. --- consumes: [application/json] produces:
api/user.go:418
↓ 5 callersMethodclear
()
ui/src/common/BaseStore.ts:8
↓ 5 callersFunctionclearField
(element: ElementHandle | Page, selector: string)
ui/src/tests/utils.ts:59
↓ 5 callersFunctionenabledState
(id: number)
ui/src/tests/plugin.test.ts:39
↓ 5 callersMethodgetMockPluginInstance
(uid uint)
plugin/manager_test.go:104
↓ 5 callersFunctionisPluginOwner
(ctx *gin.Context, conf *model.PluginConf)
api/plugin.go:406
↓ 5 callersMethodloginAdmin
()
api/user_test.go:427
↓ 5 callersFunctionmustOpen
(f string)
api/application_test.go:694
↓ 5 callersFunctionnewTest
(pluginsDir = '')
ui/src/tests/setup.ts:30
↓ 5 callersFunctiontoExternalUser
(internal *model.User)
api/user.go:455
↓ 5 callersFunctionupload
A modified version of https://stackoverflow.com/a/20397167/4244993 from Attila O.
api/application_test.go:677
↓ 5 callersFunctionwithResolvedImage
(app *model.Application)
api/application.go:443
↓ 4 callersMethodAssertAppNotExist
AssertAppNotExist asserts that the app does not exist.
test/testdb/database.go:180
↓ 4 callersMethodAssertClientExist
AssertClientExist asserts that the client does exist.
test/testdb/database.go:231
↓ 4 callersMethodClient
Client creates a client and returns itself.
test/testdb/database.go:149
↓ 4 callersFunctionCorsConfig
CorsConfig generates a config to use in gin cors middleware based on server configuration.
auth/cors.go:14
↓ 4 callersMethodDeleteApplicationByID
(id uint)
api/application.go:24
↓ 4 callersMethodDeleteMessage
DeleteMessage deletes a message with an id. swagger:operation DELETE /message/{id} message deleteMessage Deletes a message with an id. --- produce
api/message.go:307
↓ 4 callersMethodDisable
()
plugin/compat/instance.go:28
↓ 4 callersMethodEnable
()
plugin/compat/instance.go:27
↓ 4 callersFunctionGeneratePluginToken
GeneratePluginToken generates a plugin token.
auth/token.go:48
↓ 4 callersMethodGetApplicationByID
(id uint)
api/application.go:22
↓ 4 callersFunctionHandler
Handler creates a gin middleware for handling errors.
error/handler.go:15
↓ 4 callersMethodLoadPlugin
LoadPlugin loads a compat plugin, exported to sideload plugins for testing purposes.
plugin/manager.go:257
↓ 4 callersMethodOnUserDeleted
OnUserDeleted is called on user deletion.
api/user.go:32
↓ 4 callersMethodPing
()
api/health.go:10
↓ 4 callersMethodSetMessageHandler
SetMessageHandler see Messenger#SetMessageHandler
plugin/compat/instance.go:39
↓ 4 callersMethodStrings
Strings converts []Module to []string.
plugin/compat/instance.go:65
↓ 4 callersFunctionTokens
Tokens returns a token generation function with takes a series of tokens and output them in order.
test/token.go:6
↓ 4 callersFunctionassertJSONResponse
(t *testing.T, rec *httptest.ResponseRecorder, code int, json string)
error/handler_test.go:76
↓ 4 callersFunctionclients
(api *API, user uint)
api/stream/stream_test.go:507
↓ 4 callersFunctioncompileAllowedWebSocketOrigins
(allowedOrigins []string)
api/stream/stream.go:221
↓ 4 callersMethodexpectMessage
(expected *model.MessageExternal)
api/stream/stream_test.go:561
↓ 4 callersMethodexpectNoMessage
()
api/stream/stream_test.go:582
↓ 4 callersFunctionexternalOf
(user *model.User)
api/user_test.go:441
↓ 4 callersFunctionfakeImage
(t *testing.T, path string)
api/application_test.go:702
↓ 4 callersMethodgetConfForExamplePlugin
(uid uint)
plugin/manager_test.go:92
↓ 4 callersMethodgetDanglingConf
(uid uint)
api/plugin_test.go:64
↓ 4 callersFunctionmidpoint
`a < b` lexicographically if `b` is non-empty. a == "" means first possible string. b == "" means last possible string.
fracdex/fracdex.go:108
↓ 4 callersFunctionwithURL
(ctx *gin.Context, scheme, host string)
api/client_test.go:231
↓ 3 callersMethodAssertUserExist
AssertUserExist asserts that the user does exist.
test/testdb/database.go:224
↓ 3 callersMethodAssertUserNotExist
AssertUserNotExist asserts that the user does not exist.
test/testdb/database.go:187
↓ 3 callersMethodAssertUsernameNotExist
AssertUsernameNotExist asserts that the user does not exist.
test/testdb/database.go:194
↓ 3 callersMethodCollectConnectedClientTokens
CollectConnectedClientTokens returns all tokens of the connected clients.
api/stream/stream.go:41
↓ 3 callersMethodDeleteClient
DeleteClient deletes a client by its id. swagger:operation DELETE /client/{id} client deleteClient Delete a client. --- consumes: [application/jso
api/client.go:223
↓ 3 callersMethodDeleteClientByID
(id uint)
api/client.go:17
↓ 3 callersMethodDeleteMessageByID
(id uint)
api/message.go:22
↓ 3 callersMethodDeleteMessageWithApplication
DeleteMessageWithApplication deletes all messages from a specific application. swagger:operation DELETE /application/{id}/message message deleteAppMes
api/message.go:259
↓ 3 callersMethodGetClientByToken
(token string)
auth/authentication.go:20
↓ 3 callersMethodGetPluginConfByApplicationID
(appid uint)
plugin/manager.go:29
↓ 3 callersFunctionGetTokenID
GetTokenID returns the tokenID.
auth/util.go:39
↓ 3 callersMethodOnUserAdded
OnUserAdded is called on user creation.
api/user.go:37
↓ 3 callersMethodRegisterWebhook
RegisterWebhook see Webhooker#RegisterWebhook
plugin/compat/instance.go:42
↓ 3 callersMethodRemoveApplicationImage
RemoveApplicationImage deletes an image of an application. swagger:operation DELETE /application/{id}/image application removeAppImage Deletes an ima
api/application.go:418
↓ 3 callersMethodRemoveUser
RemoveUser disabled all plugins of a user when the user is disabled.
plugin/manager.go:184
↓ 3 callersMethodRequireClient
RequireClient returns a gin middleware which requires a client token or basic authentication header to be supplied with the request.
auth/authentication.go:57
↓ 3 callersFunctionReturnErrorOnDisableForUser
ReturnErrorOnDisableForUser registers a uid which will throw an error on disabling.
plugin/testing/mock/mock.go:72
↓ 3 callersFunctionReturnErrorOnEnableForUser
ReturnErrorOnEnableForUser registers a uid which will throw an error on enabling.
plugin/testing/mock/mock.go:67
↓ 3 callersMethodSetStorageHandler
SetStorageHandler see Storager#SetStorageHandler.
plugin/compat/instance.go:45
↓ 3 callersMethodSupports
Returns the supported modules, f.ex. storager
plugin/compat/instance.go:48
↓ 3 callersFunctionUnreadableReader
UnreadableReader returns an unreadable reader, used to mock IO issues.
test/asserts.go:37
← previousnext →101–200 of 910, ranked by callers