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

Interface UserDatabase

api/user.go:15–23  ·  view source on GitHub ↗

The UserDatabase interface for encapsulating database access.

Source from the content-addressed store, hash-verified

13
14// The UserDatabase interface for encapsulating database access.
15type UserDatabase interface {
16 GetUsers() ([]*model.User, error)
17 GetUserByID(id uint) (*model.User, error)
18 GetUserByName(name string) (*model.User, error)
19 DeleteUserByID(id uint) error
20 UpdateUser(user *model.User) error
21 CreateUser(user *model.User) error
22 CountUser(condition ...interface{}) (int64, error)
23}
24
25// UserChangeNotifier notifies listeners for user changes.
26type UserChangeNotifier struct {

Callers 42

TestUserMethod · 0.65
Test_UsersMethod · 0.65
Test_GetUsersMethod · 0.65
GetUsersMethod · 0.65
InitializeForUserIDMethod · 0.65
TestUserMethod · 0.65
Test_GetUserByIDMethod · 0.65

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…