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

Method NewInternalAppWithToken

test/testdb/database.go:100–102  ·  view source on GitHub ↗

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

(id uint, token string)

Source from the content-addressed store, hash-verified

98
99// NewInternalAppWithToken creates an internal application with a token and returns the app.
100func (ab *AppClientBuilder) NewInternalAppWithToken(id uint, token string) *model.Application {
101 return ab.newAppWithToken(id, token, true)
102}
103
104func (ab *AppClientBuilder) newAppWithToken(id uint, token string, internal bool) *model.Application {
105 application := &model.Application{ID: id, UserID: ab.userID, Token: token, Internal: internal}

Callers 1

Test_AppsMethod · 0.80

Calls 1

newAppWithTokenMethod · 0.95

Tested by 1

Test_AppsMethod · 0.64