Documentation ¶
Index ¶
Constants ¶
View Source
const KIND = "user"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { // mongoClient *mongo.Client UserSVC *services.UserSvc AuthSVC *services.AuthSVC FirebaseAuthSVC *services.FirebaseAuthSvc }
Controller is a controller object that have services
func New ¶
func New(ctx context.Context) (ctrl *Controller, err error)
New generates new controller object
func (*Controller) Check ¶
func (ctrl *Controller) Check(c *gin.Context)
func (*Controller) Login ¶
func (ctrl *Controller) Login(c *gin.Context)
func (*Controller) RefreshToken ¶
func (ctrl *Controller) RefreshToken(c *gin.Context)
func (*Controller) RevokeToken ¶
func (ctrl *Controller) RevokeToken(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.