MCPcopy
hub / github.com/gotify/server / NewAppWithTokenAndName

Method NewAppWithTokenAndName

test/testdb/database.go:126–128  ·  view source on GitHub ↗

NewAppWithTokenAndName creates an application with a token and name and returns the app.

(id uint, token, name string)

Source from the content-addressed store, hash-verified

124
125// NewAppWithTokenAndName creates an application with a token and name and returns the app.
126func (ab *AppClientBuilder) NewAppWithTokenAndName(id uint, token, name string) *model.Application {
127 return ab.newAppWithTokenAndName(id, token, name, false)
128}
129
130// NewInternalAppWithTokenAndName creates an internal application with a token and name and returns the app.
131func (ab *AppClientBuilder) NewInternalAppWithTokenAndName(id uint, token, name string) *model.Application {

Callers 1

Test_AppsMethod · 0.80

Calls 1

Tested by 1

Test_AppsMethod · 0.64