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

Interface ApplicationDatabase

api/application.go:19–26  ·  view source on GitHub ↗

The ApplicationDatabase interface for encapsulating database access.

Source from the content-addressed store, hash-verified

17
18// The ApplicationDatabase interface for encapsulating database access.
19type ApplicationDatabase interface {
20 CreateApplication(application *model.Application) error
21 GetApplicationByToken(token string) (*model.Application, error)
22 GetApplicationByID(id uint) (*model.Application, error)
23 GetApplicationsByUser(userID uint) ([]*model.Application, error)
24 DeleteApplicationByID(id uint) error
25 UpdateApplication(application *model.Application) error
26}
27
28// The ApplicationAPI provides handlers for managing applications.
29type ApplicationAPI 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…