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
↓ 98 callers
Function
WithUser
WithUser fake an authentication for testing.
test/auth.go:9
↓ 96 callers
Method
User
User creates a user and returns a builder for applications and clients.
test/testdb/database.go:48
↓ 93 callers
Method
Close
Close closes all client connections and stops answering new connections.
api/stream/stream.go:157
↓ 59 callers
Method
assertHeaderRequest
(key, value string, f fMiddleware, code int)
auth/authentication_test.go:213
↓ 58 callers
Function
Set
Set sets the new mode.
mode/mode.go:17
↓ 46 callers
Function
successOrAbort
(ctx *gin.Context, code int, err error)
api/errorHandling.go:5
↓ 38 callers
Function
expectNoMessage
(clients ...*testingClient)
api/stream/stream_test.go:576
↓ 33 callers
Method
Path
Path returns the path to the temporary directory joined by the elements provided.
test/tmpdir.go:14
↓ 31 callers
Method
App
App creates an application and returns a message builder.
test/testdb/database.go:66
↓ 31 callers
Method
CreateUser
(user *model.User)
api/user.go:21
↓ 30 callers
Method
Error
()
plugin/manager.go:215
↓ 30 callers
Method
GetPluginConfByUserAndPath
(userid uint, path string)
plugin/manager.go:27
↓ 29 callers
Function
testClient
(t *testing.T, url string)
api/stream/stream_test.go:525
↓ 28 callers
Function
RegisterAuthentication
RegisterAuthentication registers the user id, user and or token.
auth/util.go:9
↓ 24 callers
Method
Errorf
(format string, args ...interface{})
test/asserts_test.go:21
↓ 24 callers
Function
assertEquals
assertEquals compares messages and correctly check dates.
database/message_test.go:238
↓ 24 callers
Function
waitForExists
(page: Page, selector: string, text: string)
ui/src/tests/utils.ts:46
↓ 23 callers
Function
GetUserID
GetUserID returns the user id which was previously registered by RegisterAuthentication.
auth/util.go:16
↓ 23 callers
Method
assertQueryRequest
(key, value string, f fMiddleware, code int)
auth/authentication_test.go:81
↓ 22 callers
Method
Do
(f func())
api/stream/once.go:19
↓ 22 callers
Method
GetMessagesByApplication
GetMessagesByApplication returns all messages from an application.
database/message.go:54
↓ 22 callers
Method
Notify
(userID uint, message *model.MessageExternal)
api/message.go:34
↓ 21 callers
Method
CreateApplication
(application *model.Application)
plugin/manager.go:35
↓ 21 callers
Function
innerText
(page: ElementHandle | Page, selector: string)
ui/src/tests/utils.ts:3
↓ 21 callers
Function
navigate
(appName: string)
ui/src/tests/message.test.ts:41
↓ 20 callers
Function
BodyEquals
BodyEquals asserts the content from the response recorder with the encoded json of the provided instance.
test/asserts.go:13
↓ 20 callers
Method
Instance
Instance returns an instance with the given ID.
plugin/manager.go:167
↓ 18 callers
Method
GetUserByID
(id uint)
api/user.go:17
↓ 18 callers
Method
String
()
plugin/compat/plugin.go:21
↓ 17 callers
Method
GetApplicationByID
(id uint)
api/message.go:20
↓ 17 callers
Function
withID
(ctx *gin.Context, name string, f func(id uint))
api/internalutil.go:11
↓ 16 callers
Method
CreateMessage
(message *model.Message)
plugin/manager.go:31
↓ 16 callers
Method
CreatePluginConf
(p *model.PluginConf)
plugin/manager.go:28
↓ 16 callers
Method
Message
Message creates a message and returns itself.
test/testdb/database.go:167
↓ 16 callers
Method
UpdateApplication
(application *model.Application)
api/application.go:25
↓ 15 callers
Method
GetApplicationByToken
(token string)
api/message.go:27
↓ 15 callers
Method
SetPluginEnabled
SetPluginEnabled sets the plugins enabled state.
plugin/manager.go:117
↓ 15 callers
Method
withFormData
(formData string)
api/application_test.go:665
↓ 14 callers
Method
GetMessagesByUser
GetMessagesByUser returns all messages from a user.
database/message.go:27
↓ 14 callers
Function
NewTmpDir
NewTmpDir returns a new handle to a tmp dir.
test/tmpdir.go:24
↓ 14 callers
Function
count
(page: Page, selector: string)
ui/src/tests/utils.ts:27
↓ 14 callers
Method
newRequest
(method, url, body string)
router/router_test.go:404
↓ 13 callers
Method
Clean
Clean removes the TmpDir.
test/tmpdir.go:19
↓ 13 callers
Method
CreateApplication
(application *model.Application)
api/application.go:20
↓ 13 callers
Function
CreatePassword
CreatePassword returns a hashed version of the given password.
auth/password/password.go:6
↓ 13 callers
Function
NewDBWithDefaultUser
NewDBWithDefaultUser creates a new test db instance with the default user.
test/testdb/database.go:32
↓ 13 callers
Method
Open
(name string)
router/router.go:255
↓ 13 callers
Function
TryGetUserID
TryGetUserID returns the user id or nil if one is not set.
auth/util.go:25
↓ 13 callers
Method
resetRecorder
()
api/plugin_test.go:70
↓ 12 callers
Method
AssertAppExist
AssertAppExist asserts that the app does exist.
test/testdb/database.go:217
↓ 12 callers
Method
CreateMessage
(message *model.Message)
api/message.go:26
↓ 12 callers
Method
GetUserByName
(name string)
api/user.go:18
↓ 12 callers
Method
InitializeForUserID
InitializeForUserID initializes all plugin instances for a given user.
plugin/manager.go:267
↓ 12 callers
Function
hasIDInclusiveBetween
(t *testing.T, msgs []*model.Message, from, to, decrement int)
database/message_test.go:226
↓ 12 callers
Function
waitToDisappear
(page: Page, selector: string)
ui/src/tests/utils.ts:30
↓ 11 callers
Method
GetClientsByUser
(userID uint)
api/client.go:16
↓ 11 callers
Method
GetMessageByID
(id uint)
api/message.go:23
↓ 11 callers
Method
NewAppWithToken
NewAppWithToken creates an application with a token and returns the app.
test/testdb/database.go:95
↓ 11 callers
Method
NewMessage
NewMessage creates a message and returns the message.
test/testdb/database.go:173
↓ 11 callers
Function
bootTestServer
(handlerFunc gin.HandlerFunc)
api/stream/stream_test.go:591
↓ 11 callers
Function
expectMessage
(expected *model.MessageExternal, clients ...*testingClient)
api/stream/stream_test.go:570
↓ 11 callers
Function
expectMessages
(toCheck: { all: Msg[]; windows: Msg[]; linux: Msg[]; backup: Msg[]; })
ui/src/tests/message.test.ts:155
↓ 11 callers
Function
toExternalMessage
(msg *model.Message)
api/message.go:409
↓ 11 callers
Function
useStores
()
ui/src/stores.tsx:24
↓ 10 callers
Method
AppWithToken
AppWithToken creates an application with a token and returns a message builder.
test/testdb/database.go:80
↓ 10 callers
Function
Create
Create creates the gin engine with all routes.
router/router.go:27
↓ 10 callers
Method
CreateClient
(client *model.Client)
api/client.go:13
↓ 10 callers
Method
DeleteUserByID
(id uint)
api/user.go:19
↓ 10 callers
Method
GetApplicationsByUser
(userID uint)
plugin/manager.go:37
↓ 10 callers
Method
GetClientByID
(id uint)
api/client.go:15
↓ 10 callers
Method
GetPluginConfByID
(id uint)
api/plugin.go:21
↓ 10 callers
Function
New
New creates a new wrapper for the gorm database framework.
database/database.go:27
↓ 10 callers
Function
createMessage
(msg: Partial<IMessage>, token: string)
ui/src/tests/message.test.ts:150
↓ 10 callers
Function
extractMessages
(expectCount: number)
ui/src/tests/message.test.ts:121
↓ 10 callers
Function
isAllowedOrigin
(r *http.Request, allowedOrigins []*regexp.Regexp)
api/stream/stream.go:183
↓ 10 callers
Function
m
(title: string, message: string, extras?: IMessageExtras)
ui/src/tests/message.test.ts:132
↓ 10 callers
Function
waitForConnectedClients
(api *API, count int)
api/stream/stream_test.go:612
↓ 10 callers
Function
wsURL
(httpURL string)
api/stream/stream_test.go:602
↓ 9 callers
Method
DefaultConfig
DefaultConfig see Configurer
plugin/compat/instance.go:34
↓ 9 callers
Method
GetDisplay
GetDisplay see Displayer
plugin/compat/instance.go:31
↓ 9 callers
Method
GetMessagesByApplicationSince
(appID uint, limit int, since uint)
api/message.go:19
↓ 9 callers
Function
HasSupport
HasSupport tests a PluginInstance for a capability.
plugin/compat/instance.go:52
↓ 9 callers
Function
KeyBetween
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 callers
Method
Save
(b []byte)
plugin/compat/instance.go:81
↓ 9 callers
Method
getConfForMockPlugin
(uid uint)
plugin/manager_test.go:98
↓ 8 callers
Function
ComparePassword
ComparePassword compares a hashed password with its possible plaintext equivalent.
auth/password/password.go:15
↓ 8 callers
Method
GetUsers
()
api/user.go:16
↓ 8 callers
Function
NewDB
NewDB creates a new test db instance.
test/testdb/database.go:40
↓ 8 callers
Function
NewManager
NewManager created a Manager from configurations.
plugin/manager.go:57
↓ 8 callers
Method
PluginInfo
()
plugin/compat/plugin.go:5
↓ 8 callers
Method
UpdateConfig
UpdateConfig updates Configurer plugin configuration in YAML format. swagger:operation POST /plugin/{id}/config plugin updatePluginConfig Update YAML
api/plugin.go:367
↓ 8 callers
Method
UploadApplicationImage
UploadApplicationImage uploads an image for an application. swagger:operation POST /application/{id}/image application uploadAppImage Upload an image
api/application.go:325
↓ 8 callers
Function
WithWd
WithWd executes a function with the specified working directory.
test/filepath.go:18
↓ 8 callers
Method
loadPlugins
(directory string)
plugin/manager.go:219
↓ 7 callers
Method
AssertMessageExist
AssertMessageExist asserts that the message does exist.
test/testdb/database.go:238
↓ 7 callers
Function
GenerateNotExistingToken
GenerateNotExistingToken receives a token generation func and a func to check whether the token exists, returns a unique token.
auth/token.go:28
↓ 7 callers
Function
Get
Get returns the current mode.
mode/mode.go:23
↓ 7 callers
Method
GetPluginConfByID
(id uint)
plugin/manager.go:32
↓ 7 callers
Method
NewPluginInstance
(ctx UserContext)
plugin/compat/plugin.go:6
↓ 7 callers
Method
NewUserWithName
NewUserWithName creates a user with a name and returns the user.
test/testdb/database.go:59
next →
1–100 of 910, ranked by callers