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

Method NewAppWithToken

test/testdb/database.go:95–97  ·  view source on GitHub ↗

NewAppWithToken creates an application with a token and returns the app.

(id uint, token string)

Source from the content-addressed store, hash-verified

93
94// NewAppWithToken creates an application with a token and returns the app.
95func (ab *AppClientBuilder) NewAppWithToken(id uint, token string) *model.Application {
96 return ab.newAppWithToken(id, token, false)
97}
98
99// NewInternalAppWithToken creates an internal application with a token and returns the app.
100func (ab *AppClientBuilder) NewInternalAppWithToken(id uint, token string) *model.Application {

Calls 1

newAppWithTokenMethod · 0.95