Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
Types ¶
type Controllers ¶
type Controllers struct {
Services Services
}
func (Controllers) Login ¶
func (controllers Controllers) Login(c *gin.Context)
func (Controllers) Register ¶
func (controllers Controllers) Register(c *gin.Context)
type ProfileResponse ¶
type ProfileResponse struct { ID uint `json:"-"` Username string `json:"username"` Bio string `json:"bio"` Image *string `json:"image"` Following bool `json:"following"` }
Declare your response schema here
type ProfileSerializer ¶
type Services ¶
func (Services) RegisterUser ¶
type UsersRouter ¶
type UsersRouter struct { Services Services Controllers Controllers }
func (*UsersRouter) Init ¶
func (router *UsersRouter) Init()
func (UsersRouter) Route ¶
func (ur UsersRouter) Route(router *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.