Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gotify/server
/ functions
Functions
910 in github.com/gotify/server
⨍
Functions
910
◇
Types & classes
173
↓ 7 callers
Method
UpdatePluginConf
(p *model.PluginConf)
plugin/manager.go:30
↓ 7 callers
Function
authed
(children: React.ReactNode)
ui/src/layout/Layout.tsx:88
↓ 7 callers
Function
doRequestAndExpect
(t *testing.T, req *http.Request, code int, json string)
router/router_test.go:411
↓ 7 callers
Function
hasUser
(name: string, isAdmin: boolean, row: number)
ui/src/tests/user.test.ts:57
↓ 7 callers
Function
intPtr
(x int)
api/message_test.go:555
↓ 7 callers
Method
withURL
(scheme, host, path, query string)
api/message_test.go:550
↓ 6 callers
Method
Close
Close closes the gorm database connection.
database/database.go:149
↓ 6 callers
Method
DisablePlugin
DisablePlugin disables a plugin. swagger:operation POST /plugin/{id}/disable plugin disablePlugin Disable a plugin. --- consumes: [application/jso
api/plugin.go:182
↓ 6 callers
Method
EnablePlugin
EnablePlugin enables a plugin. swagger:operation POST /plugin/{id}/enable plugin enablePlugin Enable a plugin. --- consumes: [application/json] p
api/plugin.go:124
↓ 6 callers
Function
Get
Get returns the configuration extracted from env variables or config file.
config/config.go:68
↓ 6 callers
Method
GetApplicationsByUser
(userID uint)
api/application.go:23
↓ 6 callers
Method
GetPluginConfByUser
(userid uint)
api/plugin.go:19
↓ 6 callers
Function
GetProjectDir
GetProjectDir returns the correct absolute path of this project.
test/filepath.go:11
↓ 6 callers
Function
JSONEquals
JSONEquals asserts the content of the string with the encoded json of the provided instance.
test/asserts.go:22
↓ 6 callers
Method
NewUser
NewUser creates a user and returns the user.
test/testdb/database.go:54
↓ 6 callers
Method
SendMessage
SendMessage see plugin.MessageHandler
plugin/compat/instance.go:76
↓ 6 callers
Method
SetCapability
SetCapability changes the capability of this plugin
plugin/testing/mock/mock.go:120
↓ 6 callers
Method
ValidateAndSetConfig
ValidateAndSetConfig see Configurer
plugin/compat/instance.go:36
↓ 6 callers
Function
getIntPart
(key string)
fracdex/fracdex.go:184
↓ 6 callers
Function
inDetailPage
(id: number, callback: () => Promise<void>)
ui/src/tests/plugin.test.ts:69
↓ 6 callers
Function
staticUserID
()
api/stream/stream_test.go:606
↓ 6 callers
Function
toExternalMessages
(msg []*model.Message)
api/message.go:425
↓ 6 callers
Function
waitforApp
(name: string, description: string, row: number)
ui/src/tests/application.test.ts:33
↓ 6 callers
Method
withFormData
(formData string)
api/client_test.go:226
↓ 5 callers
Method
AppWithTokenAndName
AppWithTokenAndName creates an application with a token and name and returns a message builder.
test/testdb/database.go:111
↓ 5 callers
Method
AssertClientNotExist
AssertClientNotExist asserts that the client does not exist.
test/testdb/database.go:201
↓ 5 callers
Method
AssertMessageNotExist
AssertMessageNotExist asserts that the messages does not exist.
test/testdb/database.go:208
↓ 5 callers
Method
CountUser
(condition ...interface{})
api/user.go:22
↓ 5 callers
Method
DeleteApplication
DeleteApplication deletes an application by its id. swagger:operation DELETE /application/{id} application deleteApp Delete an application. --- co
api/application.go:184
↓ 5 callers
Method
GetClientByToken
(token string)
api/client.go:14
↓ 5 callers
Method
GetConfig
GetConfig returns Configurer plugin configuration in YAML format. swagger:operation GET /plugin/{id}/config plugin getPluginConfig Get YAML configura
api/plugin.go:303
↓ 5 callers
Method
GetMessages
GetMessages returns all messages from a user. swagger:operation GET /message message getMessages Return all messages. --- produces: [application/j
api/message.go:89
↓ 5 callers
Method
GetMessagesByUserSince
(userID uint, limit int, since uint)
api/message.go:21
↓ 5 callers
Method
GetMessagesWithApplication
GetMessagesWithApplication returns all messages from a specific application. swagger:operation GET /application/{id}/message message getAppMessages R
api/message.go:180
↓ 5 callers
Method
GetPluginConfByToken
(token string)
auth/authentication.go:21
↓ 5 callers
Function
IsDev
IsDev returns true if the current mode is dev mode.
mode/mode.go:28
↓ 5 callers
Method
Load
()
plugin/compat/instance.go:82
↓ 5 callers
Method
NewClientWithToken
NewClientWithToken creates a client with a token and returns the client.
test/testdb/database.go:160
↓ 5 callers
Method
UpdateClient
(client *model.Client)
api/client.go:18
↓ 5 callers
Method
UpdateUserByID
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 callers
Method
clear
()
ui/src/common/BaseStore.ts:8
↓ 5 callers
Function
clearField
(element: ElementHandle | Page, selector: string)
ui/src/tests/utils.ts:59
↓ 5 callers
Function
enabledState
(id: number)
ui/src/tests/plugin.test.ts:39
↓ 5 callers
Method
getMockPluginInstance
(uid uint)
plugin/manager_test.go:104
↓ 5 callers
Function
isPluginOwner
(ctx *gin.Context, conf *model.PluginConf)
api/plugin.go:406
↓ 5 callers
Method
loginAdmin
()
api/user_test.go:427
↓ 5 callers
Function
mustOpen
(f string)
api/application_test.go:694
↓ 5 callers
Function
newTest
(pluginsDir = '')
ui/src/tests/setup.ts:30
↓ 5 callers
Function
toExternalUser
(internal *model.User)
api/user.go:455
↓ 5 callers
Function
upload
A modified version of https://stackoverflow.com/a/20397167/4244993 from Attila O.
api/application_test.go:677
↓ 5 callers
Function
withResolvedImage
(app *model.Application)
api/application.go:443
↓ 4 callers
Method
AssertAppNotExist
AssertAppNotExist asserts that the app does not exist.
test/testdb/database.go:180
↓ 4 callers
Method
AssertClientExist
AssertClientExist asserts that the client does exist.
test/testdb/database.go:231
↓ 4 callers
Method
Client
Client creates a client and returns itself.
test/testdb/database.go:149
↓ 4 callers
Function
CorsConfig
CorsConfig generates a config to use in gin cors middleware based on server configuration.
auth/cors.go:14
↓ 4 callers
Method
DeleteApplicationByID
(id uint)
api/application.go:24
↓ 4 callers
Method
DeleteMessage
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 callers
Method
Disable
()
plugin/compat/instance.go:28
↓ 4 callers
Method
Enable
()
plugin/compat/instance.go:27
↓ 4 callers
Function
GeneratePluginToken
GeneratePluginToken generates a plugin token.
auth/token.go:48
↓ 4 callers
Method
GetApplicationByID
(id uint)
api/application.go:22
↓ 4 callers
Function
Handler
Handler creates a gin middleware for handling errors.
error/handler.go:15
↓ 4 callers
Method
LoadPlugin
LoadPlugin loads a compat plugin, exported to sideload plugins for testing purposes.
plugin/manager.go:257
↓ 4 callers
Method
OnUserDeleted
OnUserDeleted is called on user deletion.
api/user.go:32
↓ 4 callers
Method
Ping
()
api/health.go:10
↓ 4 callers
Method
SetMessageHandler
SetMessageHandler see Messenger#SetMessageHandler
plugin/compat/instance.go:39
↓ 4 callers
Method
Strings
Strings converts []Module to []string.
plugin/compat/instance.go:65
↓ 4 callers
Function
Tokens
Tokens returns a token generation function with takes a series of tokens and output them in order.
test/token.go:6
↓ 4 callers
Function
assertJSONResponse
(t *testing.T, rec *httptest.ResponseRecorder, code int, json string)
error/handler_test.go:76
↓ 4 callers
Function
clients
(api *API, user uint)
api/stream/stream_test.go:507
↓ 4 callers
Function
compileAllowedWebSocketOrigins
(allowedOrigins []string)
api/stream/stream.go:221
↓ 4 callers
Method
expectMessage
(expected *model.MessageExternal)
api/stream/stream_test.go:561
↓ 4 callers
Method
expectNoMessage
()
api/stream/stream_test.go:582
↓ 4 callers
Function
externalOf
(user *model.User)
api/user_test.go:441
↓ 4 callers
Function
fakeImage
(t *testing.T, path string)
api/application_test.go:702
↓ 4 callers
Method
getConfForExamplePlugin
(uid uint)
plugin/manager_test.go:92
↓ 4 callers
Method
getDanglingConf
(uid uint)
api/plugin_test.go:64
↓ 4 callers
Function
midpoint
`a < b` lexicographically if `b` is non-empty. a == "" means first possible string. b == "" means last possible string.
fracdex/fracdex.go:108
↓ 4 callers
Function
withURL
(ctx *gin.Context, scheme, host string)
api/client_test.go:231
↓ 3 callers
Method
AssertUserExist
AssertUserExist asserts that the user does exist.
test/testdb/database.go:224
↓ 3 callers
Method
AssertUserNotExist
AssertUserNotExist asserts that the user does not exist.
test/testdb/database.go:187
↓ 3 callers
Method
AssertUsernameNotExist
AssertUsernameNotExist asserts that the user does not exist.
test/testdb/database.go:194
↓ 3 callers
Method
CollectConnectedClientTokens
CollectConnectedClientTokens returns all tokens of the connected clients.
api/stream/stream.go:41
↓ 3 callers
Method
DeleteClient
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 callers
Method
DeleteClientByID
(id uint)
api/client.go:17
↓ 3 callers
Method
DeleteMessageByID
(id uint)
api/message.go:22
↓ 3 callers
Method
DeleteMessageWithApplication
DeleteMessageWithApplication deletes all messages from a specific application. swagger:operation DELETE /application/{id}/message message deleteAppMes
api/message.go:259
↓ 3 callers
Method
GetClientByToken
(token string)
auth/authentication.go:20
↓ 3 callers
Method
GetPluginConfByApplicationID
(appid uint)
plugin/manager.go:29
↓ 3 callers
Function
GetTokenID
GetTokenID returns the tokenID.
auth/util.go:39
↓ 3 callers
Method
OnUserAdded
OnUserAdded is called on user creation.
api/user.go:37
↓ 3 callers
Method
RegisterWebhook
RegisterWebhook see Webhooker#RegisterWebhook
plugin/compat/instance.go:42
↓ 3 callers
Method
RemoveApplicationImage
RemoveApplicationImage deletes an image of an application. swagger:operation DELETE /application/{id}/image application removeAppImage Deletes an ima
api/application.go:418
↓ 3 callers
Method
RemoveUser
RemoveUser disabled all plugins of a user when the user is disabled.
plugin/manager.go:184
↓ 3 callers
Method
RequireClient
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 callers
Function
ReturnErrorOnDisableForUser
ReturnErrorOnDisableForUser registers a uid which will throw an error on disabling.
plugin/testing/mock/mock.go:72
↓ 3 callers
Function
ReturnErrorOnEnableForUser
ReturnErrorOnEnableForUser registers a uid which will throw an error on enabling.
plugin/testing/mock/mock.go:67
↓ 3 callers
Method
SetStorageHandler
SetStorageHandler see Storager#SetStorageHandler.
plugin/compat/instance.go:45
↓ 3 callers
Method
Supports
Returns the supported modules, f.ex. storager
plugin/compat/instance.go:48
↓ 3 callers
Function
UnreadableReader
UnreadableReader returns an unreadable reader, used to mock IO issues.
test/asserts.go:37
← previous
next →
101–200 of 910, ranked by callers