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

Method User

test/testdb/database.go:48–51  ·  view source on GitHub ↗

User creates a user and returns a builder for applications and clients.

(id uint)

Source from the content-addressed store, hash-verified

46
47// User creates a user and returns a builder for applications and clients.
48func (d *Database) User(id uint) *AppClientBuilder {
49 d.NewUser(id)
50 return &AppClientBuilder{db: d, userID: id}
51}
52
53// NewUser creates a user and returns the user.
54func (d *Database) NewUser(id uint) *model.User {

Implementers 1

GormDatabasedatabase/database.go

Calls 1

NewUserMethod · 0.95