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

Method CreateClient

api/client.go:13–13  ·  view source on GitHub ↗
(client *model.Client)

Source from the content-addressed store, hash-verified

11// The ClientDatabase interface for encapsulating database access.
12type ClientDatabase interface {
13 CreateClient(client *model.Client) error
14 GetClientByToken(token string) (*model.Client, error)
15 GetClientByID(id uint) (*model.Client, error)
16 GetClientsByUser(userID uint) ([]*model.Client, error)

Implementers 1

GormDatabasedatabase/database.go

Calls

no outgoing calls