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

Method NewClientWithToken

test/testdb/database.go:160–164  ·  view source on GitHub ↗

NewClientWithToken creates a client with a token and returns the client.

(id uint, token string)

Source from the content-addressed store, hash-verified

158
159// NewClientWithToken creates a client with a token and returns the client.
160func (ab *AppClientBuilder) NewClientWithToken(id uint, token string) *model.Client {
161 client := &model.Client{ID: id, Token: token, UserID: ab.userID}
162 ab.db.CreateClient(client)
163 return client
164}
165
166// Message creates a message and returns itself.
167func (mb *MessageBuilder) Message(id uint) *MessageBuilder {

Callers 4

ClientWithTokenMethod · 0.95
Test_ClientsMethod · 0.80
Test_GetClientsMethod · 0.80

Calls 1

CreateClientMethod · 0.65

Tested by 3

Test_ClientsMethod · 0.64
Test_GetClientsMethod · 0.64