Documentation ¶
Overview ¶
Package user package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetUsersInput ¶
type GetUsersInput struct { // Sort specifies the field to sort on and direction Sort *db.UserSortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // UsernamePrefix filters user list by username prefix UsernamePrefix *string }
GetUsersInput is the input for listing users
type Service ¶
type Service interface { GetUserByID(ctx context.Context, userID string) (*models.User, error) GetUserByUsername(ctx context.Context, username string) (*models.User, error) GetUsers(ctx context.Context, input *GetUsersInput) (*db.UsersResult, error) GetUsersByIDs(ctx context.Context, idList []string) ([]models.User, error) }
Service implements all user related functionality
Click to show internal directories.
Click to hide internal directories.