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

Method NewUserWithName

test/testdb/database.go:59–63  ·  view source on GitHub ↗

NewUserWithName creates a user with a name and returns the user.

(id uint, name string)

Source from the content-addressed store, hash-verified

57
58// NewUserWithName creates a user with a name and returns the user.
59func (d *Database) NewUserWithName(id uint, name string) *model.User {
60 user := &model.User{ID: id, Name: name}
61 d.CreateUser(user)
62 return user
63}
64
65// App creates an application and returns a message builder.
66func (ab *AppClientBuilder) App(id uint) *MessageBuilder {

Implementers 1

GormDatabasedatabase/database.go

Calls 1

CreateUserMethod · 0.65