Documentation ¶
Index ¶
- func DoLogin(cfg ConfigService, db DatabaseService) echo.HandlerFunc
- func DoRegister(_ ConfigService, db DatabaseService) echo.HandlerFunc
- func Home() echo.HandlerFunc
- func Login(cfg ConfigService, _ DatabaseService) echo.HandlerFunc
- func Register(_ ConfigService, _ DatabaseService) echo.HandlerFunc
- type ConfigService
- type DatabaseService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoLogin ¶
func DoLogin(cfg ConfigService, db DatabaseService) echo.HandlerFunc
func DoRegister ¶
func DoRegister(_ ConfigService, db DatabaseService) echo.HandlerFunc
func Login ¶
func Login(cfg ConfigService, _ DatabaseService) echo.HandlerFunc
func Register ¶
func Register(_ ConfigService, _ DatabaseService) echo.HandlerFunc
Types ¶
type ConfigService ¶
type DatabaseService ¶
type DatabaseService interface { FetchUserByUsername(ctx context.Context, email string) (dbx.User, error) FetchBookmarksList(ctx context.Context, arg dbx.FetchBookmarksListParams) ([]dbx.Bookmark, error) CountBookmarksList(ctx context.Context, userID int64) (int64, error) CreateUser(ctx context.Context, arg dbx.CreateUserParams) (dbx.User, error) }
Click to show internal directories.
Click to hide internal directories.