MCPcopy Create free account

hub / github.com/gotify/server / functions

Functions910 in github.com/gotify/server

↓ 98 callersFunctionWithUser
WithUser fake an authentication for testing.
test/auth.go:9
↓ 96 callersMethodUser
User creates a user and returns a builder for applications and clients.
test/testdb/database.go:48
↓ 93 callersMethodClose
Close closes all client connections and stops answering new connections.
api/stream/stream.go:157
↓ 59 callersMethodassertHeaderRequest
(key, value string, f fMiddleware, code int)
auth/authentication_test.go:213
↓ 58 callersFunctionSet
Set sets the new mode.
mode/mode.go:17
↓ 46 callersFunctionsuccessOrAbort
(ctx *gin.Context, code int, err error)
api/errorHandling.go:5
↓ 38 callersFunctionexpectNoMessage
(clients ...*testingClient)
api/stream/stream_test.go:576
↓ 33 callersMethodPath
Path returns the path to the temporary directory joined by the elements provided.
test/tmpdir.go:14
↓ 31 callersMethodApp
App creates an application and returns a message builder.
test/testdb/database.go:66
↓ 31 callersMethodCreateUser
(user *model.User)
api/user.go:21
↓ 30 callersMethodError
()
plugin/manager.go:215
↓ 30 callersMethodGetPluginConfByUserAndPath
(userid uint, path string)
plugin/manager.go:27
↓ 29 callersFunctiontestClient
(t *testing.T, url string)
api/stream/stream_test.go:525
↓ 28 callersFunctionRegisterAuthentication
RegisterAuthentication registers the user id, user and or token.
auth/util.go:9
↓ 24 callersMethodErrorf
(format string, args ...interface{})
test/asserts_test.go:21
↓ 24 callersFunctionassertEquals
assertEquals compares messages and correctly check dates.
database/message_test.go:238
↓ 24 callersFunctionwaitForExists
(page: Page, selector: string, text: string)
ui/src/tests/utils.ts:46
↓ 23 callersFunctionGetUserID
GetUserID returns the user id which was previously registered by RegisterAuthentication.
auth/util.go:16
↓ 23 callersMethodassertQueryRequest
(key, value string, f fMiddleware, code int)
auth/authentication_test.go:81
↓ 22 callersMethodDo
(f func())
api/stream/once.go:19
↓ 22 callersMethodGetMessagesByApplication
GetMessagesByApplication returns all messages from an application.
database/message.go:54
↓ 22 callersMethodNotify
(userID uint, message *model.MessageExternal)
api/message.go:34
↓ 21 callersMethodCreateApplication
(application *model.Application)
plugin/manager.go:35
↓ 21 callersFunctioninnerText
(page: ElementHandle | Page, selector: string)
ui/src/tests/utils.ts:3
↓ 21 callersFunctionnavigate
(appName: string)
ui/src/tests/message.test.ts:41
↓ 20 callersFunctionBodyEquals
BodyEquals asserts the content from the response recorder with the encoded json of the provided instance.
test/asserts.go:13
↓ 20 callersMethodInstance
Instance returns an instance with the given ID.
plugin/manager.go:167
↓ 18 callersMethodGetUserByID
(id uint)
api/user.go:17
↓ 18 callersMethodString
()
plugin/compat/plugin.go:21
↓ 17 callersMethodGetApplicationByID
(id uint)
api/message.go:20
↓ 17 callersFunctionwithID
(ctx *gin.Context, name string, f func(id uint))
api/internalutil.go:11
↓ 16 callersMethodCreateMessage
(message *model.Message)
plugin/manager.go:31
↓ 16 callersMethodCreatePluginConf
(p *model.PluginConf)
plugin/manager.go:28
↓ 16 callersMethodMessage
Message creates a message and returns itself.
test/testdb/database.go:167
↓ 16 callersMethodUpdateApplication
(application *model.Application)
api/application.go:25
↓ 15 callersMethodGetApplicationByToken
(token string)
api/message.go:27
↓ 15 callersMethodSetPluginEnabled
SetPluginEnabled sets the plugins enabled state.
plugin/manager.go:117
↓ 15 callersMethodwithFormData
(formData string)
api/application_test.go:665
↓ 14 callersMethodGetMessagesByUser
GetMessagesByUser returns all messages from a user.
database/message.go:27
↓ 14 callersFunctionNewTmpDir
NewTmpDir returns a new handle to a tmp dir.
test/tmpdir.go:24
↓ 14 callersFunctioncount
(page: Page, selector: string)
ui/src/tests/utils.ts:27
↓ 14 callersMethodnewRequest
(method, url, body string)
router/router_test.go:404
↓ 13 callersMethodClean
Clean removes the TmpDir.
test/tmpdir.go:19
↓ 13 callersMethodCreateApplication
(application *model.Application)
api/application.go:20
↓ 13 callersFunctionCreatePassword
CreatePassword returns a hashed version of the given password.
auth/password/password.go:6
↓ 13 callersFunctionNewDBWithDefaultUser
NewDBWithDefaultUser creates a new test db instance with the default user.
test/testdb/database.go:32
↓ 13 callersMethodOpen
(name string)
router/router.go:255
↓ 13 callersFunctionTryGetUserID
TryGetUserID returns the user id or nil if one is not set.
auth/util.go:25
↓ 13 callersMethodresetRecorder
()
api/plugin_test.go:70
↓ 12 callersMethodAssertAppExist
AssertAppExist asserts that the app does exist.
test/testdb/database.go:217
↓ 12 callersMethodCreateMessage
(message *model.Message)
api/message.go:26
↓ 12 callersMethodGetUserByName
(name string)
api/user.go:18
↓ 12 callersMethodInitializeForUserID
InitializeForUserID initializes all plugin instances for a given user.
plugin/manager.go:267
↓ 12 callersFunctionhasIDInclusiveBetween
(t *testing.T, msgs []*model.Message, from, to, decrement int)
database/message_test.go:226
↓ 12 callersFunctionwaitToDisappear
(page: Page, selector: string)
ui/src/tests/utils.ts:30
↓ 11 callersMethodGetClientsByUser
(userID uint)
api/client.go:16
↓ 11 callersMethodGetMessageByID
(id uint)
api/message.go:23
↓ 11 callersMethodNewAppWithToken
NewAppWithToken creates an application with a token and returns the app.
test/testdb/database.go:95
↓ 11 callersMethodNewMessage
NewMessage creates a message and returns the message.
test/testdb/database.go:173
↓ 11 callersFunctionbootTestServer
(handlerFunc gin.HandlerFunc)
api/stream/stream_test.go:591
↓ 11 callersFunctionexpectMessage
(expected *model.MessageExternal, clients ...*testingClient)
api/stream/stream_test.go:570
↓ 11 callersFunctionexpectMessages
(toCheck: { all: Msg[]; windows: Msg[]; linux: Msg[]; backup: Msg[]; })
ui/src/tests/message.test.ts:155
↓ 11 callersFunctiontoExternalMessage
(msg *model.Message)
api/message.go:409
↓ 11 callersFunctionuseStores
()
ui/src/stores.tsx:24
↓ 10 callersMethodAppWithToken
AppWithToken creates an application with a token and returns a message builder.
test/testdb/database.go:80
↓ 10 callersFunctionCreate
Create creates the gin engine with all routes.
router/router.go:27
↓ 10 callersMethodCreateClient
(client *model.Client)
api/client.go:13
↓ 10 callersMethodDeleteUserByID
(id uint)
api/user.go:19
↓ 10 callersMethodGetApplicationsByUser
(userID uint)
plugin/manager.go:37
↓ 10 callersMethodGetClientByID
(id uint)
api/client.go:15
↓ 10 callersMethodGetPluginConfByID
(id uint)
api/plugin.go:21
↓ 10 callersFunctionNew
New creates a new wrapper for the gorm database framework.
database/database.go:27
↓ 10 callersFunctioncreateMessage
(msg: Partial<IMessage>, token: string)
ui/src/tests/message.test.ts:150
↓ 10 callersFunctionextractMessages
(expectCount: number)
ui/src/tests/message.test.ts:121
↓ 10 callersFunctionisAllowedOrigin
(r *http.Request, allowedOrigins []*regexp.Regexp)
api/stream/stream.go:183
↓ 10 callersFunctionm
(title: string, message: string, extras?: IMessageExtras)
ui/src/tests/message.test.ts:132
↓ 10 callersFunctionwaitForConnectedClients
(api *API, count int)
api/stream/stream_test.go:612
↓ 10 callersFunctionwsURL
(httpURL string)
api/stream/stream_test.go:602
↓ 9 callersMethodDefaultConfig
DefaultConfig see Configurer
plugin/compat/instance.go:34
↓ 9 callersMethodGetDisplay
GetDisplay see Displayer
plugin/compat/instance.go:31
↓ 9 callersMethodGetMessagesByApplicationSince
(appID uint, limit int, since uint)
api/message.go:19
↓ 9 callersFunctionHasSupport
HasSupport tests a PluginInstance for a capability.
plugin/compat/instance.go:52
↓ 9 callersFunctionKeyBetween
KeyBetween returns a key that sorts lexicographically between a and b. Either a or b can be empty strings. If a is empty it indicates smallest key, If
fracdex/fracdex.go:21
↓ 9 callersMethodSave
(b []byte)
plugin/compat/instance.go:81
↓ 9 callersMethodgetConfForMockPlugin
(uid uint)
plugin/manager_test.go:98
↓ 8 callersFunctionComparePassword
ComparePassword compares a hashed password with its possible plaintext equivalent.
auth/password/password.go:15
↓ 8 callersMethodGetUsers
()
api/user.go:16
↓ 8 callersFunctionNewDB
NewDB creates a new test db instance.
test/testdb/database.go:40
↓ 8 callersFunctionNewManager
NewManager created a Manager from configurations.
plugin/manager.go:57
↓ 8 callersMethodPluginInfo
()
plugin/compat/plugin.go:5
↓ 8 callersMethodUpdateConfig
UpdateConfig updates Configurer plugin configuration in YAML format. swagger:operation POST /plugin/{id}/config plugin updatePluginConfig Update YAML
api/plugin.go:367
↓ 8 callersMethodUploadApplicationImage
UploadApplicationImage uploads an image for an application. swagger:operation POST /application/{id}/image application uploadAppImage Upload an image
api/application.go:325
↓ 8 callersFunctionWithWd
WithWd executes a function with the specified working directory.
test/filepath.go:18
↓ 8 callersMethodloadPlugins
(directory string)
plugin/manager.go:219
↓ 7 callersMethodAssertMessageExist
AssertMessageExist asserts that the message does exist.
test/testdb/database.go:238
↓ 7 callersFunctionGenerateNotExistingToken
GenerateNotExistingToken receives a token generation func and a func to check whether the token exists, returns a unique token.
auth/token.go:28
↓ 7 callersFunctionGet
Get returns the current mode.
mode/mode.go:23
↓ 7 callersMethodGetPluginConfByID
(id uint)
plugin/manager.go:32
↓ 7 callersMethodNewPluginInstance
(ctx UserContext)
plugin/compat/plugin.go:6
↓ 7 callersMethodNewUserWithName
NewUserWithName creates a user with a name and returns the user.
test/testdb/database.go:59
next →1–100 of 910, ranked by callers