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

Interface ClientDatabase

api/client.go:12–19  ·  view source on GitHub ↗

The ClientDatabase interface for encapsulating database access.

Source from the content-addressed store, hash-verified

10
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)
17 DeleteClientByID(id uint) error
18 UpdateClient(client *model.Client) error
19}
20
21// The ClientAPI provides handlers for managing clients and applications.
22type ClientAPI struct {

Implementers 1

GormDatabasedatabase/database.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…