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

Method newAppWithToken

test/testdb/database.go:104–108  ·  view source on GitHub ↗
(id uint, token string, internal bool)

Source from the content-addressed store, hash-verified

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}
106 ab.db.CreateApplication(application)
107 return application
108}
109
110// AppWithTokenAndName creates an application with a token and name and returns a message builder.
111func (ab *AppClientBuilder) AppWithTokenAndName(id uint, token, name string) *MessageBuilder {

Callers 3

appWithTokenMethod · 0.95
NewAppWithTokenMethod · 0.95

Calls 1

CreateApplicationMethod · 0.65

Tested by

no test coverage detected