summaryrefslogtreecommitdiff
path: root/internal/db/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/user.go')
-rw-r--r--internal/db/user.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/user.go b/internal/db/user.go
index e93ac4529..15165d0be 100644
--- a/internal/db/user.go
+++ b/internal/db/user.go
@@ -25,6 +25,8 @@ import (
// User contains functions related to user getting/setting/creation.
type User interface {
+ // GetAllUsers returns all local user accounts, or an error if something goes wrong.
+ GetAllUsers(ctx context.Context) ([]*gtsmodel.User, Error)
// GetUserByID returns one user with the given ID, or an error if something goes wrong.
GetUserByID(ctx context.Context, id string) (*gtsmodel.User, Error)
// GetUserByAccountID returns one user by its account ID, or an error if something goes wrong.