MCPcopy Create free account
hub / github.com/gotify/server / CreateClient

Method CreateClient

database/client.go:37–39  ·  view source on GitHub ↗

CreateClient creates a client.

(client *model.Client)

Source from the content-addressed store, hash-verified

35
36// CreateClient creates a client.
37func (d *GormDatabase) CreateClient(client *model.Client) error {
38 return d.DB.Create(client).Error
39}
40
41// GetClientsByUser returns all clients from a user.
42func (d *GormDatabase) GetClientsByUser(userID uint) ([]*model.Client, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected