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

Method newAppWithTokenAndName

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

Source from the content-addressed store, hash-verified

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}
137 ab.db.CreateApplication(application)
138 return application
139}
140
141// AppWithTokenAndDefaultPriority creates an application with a token and defaultPriority and returns a message builder.
142func (ab *AppClientBuilder) AppWithTokenAndDefaultPriority(id uint, token string, defaultPriority int) *MessageBuilder {

Callers 3

appWithTokenAndNameMethod · 0.95

Calls 1

CreateApplicationMethod · 0.65

Tested by

no test coverage detected