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

Method NewInternalAppWithTokenAndName

test/testdb/database.go:131–133  ·  view source on GitHub ↗

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

(id uint, token, name string)

Source from the content-addressed store, hash-verified

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 {
132 return ab.newAppWithTokenAndName(id, token, name, true)
133}
134
135func (ab *AppClientBuilder) newAppWithTokenAndName(id uint, token, name string, internal bool) *model.Application {
136 application := &model.Application{ID: id, UserID: ab.userID, Token: token, Name: name, Internal: internal}

Callers 1

Test_AppsMethod · 0.80

Calls 1

Tested by 1

Test_AppsMethod · 0.64