controller

package
v0.0.0-...-91c8016 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL