MCPcopy Index your code
hub / github.com/gotify/server / AppWithTokenAndDefaultPriority

Method AppWithTokenAndDefaultPriority

test/testdb/database.go:142–146  ·  view source on GitHub ↗

AppWithTokenAndDefaultPriority creates an application with a token and defaultPriority and returns a message builder.

(id uint, token string, defaultPriority int)

Source from the content-addressed store, hash-verified

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 {
143 application := &model.Application{ID: id, UserID: ab.userID, Token: token, DefaultPriority: defaultPriority}
144 ab.db.CreateApplication(application)
145 return &MessageBuilder{db: ab.db, appID: id}
146}
147
148// Client creates a client and returns itself.
149func (ab *AppClientBuilder) Client(id uint) *AppClientBuilder {

Callers 2

Test_AppsMethod · 0.80

Calls 1

CreateApplicationMethod · 0.65

Tested by 2

Test_AppsMethod · 0.64