Documentation
¶
Index ¶
- func RoutesRegister(e *echo.Echo, db *gorm.DB, rd *redis.Client)
- type Handler
- func (h *Handler) CurrentUser(c echo.Context) error
- func (h *Handler) FollowProfile(c echo.Context) error
- func (h *Handler) GetHistory(c echo.Context) error
- func (h *Handler) GetProfile(c echo.Context) error
- func (h *Handler) RefreshToken(c echo.Context) error
- func (h *Handler) SignIn(c echo.Context) error
- func (h *Handler) SignOut(c echo.Context) error
- func (h *Handler) SignUp(c echo.Context) error
- func (h *Handler) UnfollowProfile(c echo.Context) error
- func (h *Handler) UpdatePassword(c echo.Context) error
- type Store
- func (s *Store) AddFollower(u *model.User, followerID string) error
- func (s *Store) CreateHistory(history *model.History) error
- func (s *Store) CreateUser(user *model.User) error
- func (s *Store) DeleteUser(user *model.User) error
- func (s *Store) GetHistory(id string) ([]model.History, error)
- func (s *Store) GetProfile(username string) (*model.User, error)
- func (s *Store) GetUserByEmail(email string) (*model.User, error)
- func (s *Store) GetUserByID(id string) (*model.User, error)
- func (s *Store) IsFollower(userID, followerID string) (bool, error)
- func (s *Store) RemoveFollower(u *model.User, followerID string) error
- func (s *Store) UpdateUser(user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoutesRegister ¶
Router in auth domain
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CurrentUser ¶
func (*Handler) FollowProfile ¶
func (*Handler) GetHistory ¶
func (*Handler) GetProfile ¶
func (*Handler) RefreshToken ¶
func (*Handler) UnfollowProfile ¶
func (*Handler) UpdatePassword ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) RemoveFollower ¶
Click to show internal directories.
Click to hide internal directories.