Documentation
¶
Overview ¶
Package auth provides authentication-related functionality, including user creation and retrieval from the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
MainAPI
}
Auth is the main struct for handling authentication logic and implements the MainAPI interface.
type MainAPI ¶
type MainAPI interface { // CreateUser creates a new user CreateUser(user model.User) error // GetUser retrieves a user by username and password GetUser(username, password string) (*model.User, error) }
MainAPI defines the methods related to authentication, such as creating and retrieving users.
Click to show internal directories.
Click to hide internal directories.