Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDb ¶
type UserDb interface { // Create a new user. This method should return the user with the ID populated. CreateUser(ctx context.Context, user *models.User) (*models.User, error) GetUser(ctx context.Context, id string) (*models.User, error) GetUsers(ctx context.Context) ([]*models.User, error) GetUserByUsername(ctx context.Context, username string) (*models.User, error) }
Click to show internal directories.
Click to hide internal directories.