controllers.*AuthController.Logout   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package controllers
2
3
import (
4
	"github.com/gofiber/fiber/v2"
5
	"github.com/memnix/memnix-rest/internal/auth"
6
)
7
8
type AuthController struct {
9
	auth auth.IUseCase
10
}
11
12
func NewAuthController(auth auth.IUseCase) AuthController {
13
	return AuthController{auth: auth}
14
}
15
16
func (a *AuthController) Login(c *fiber.Ctx) error {
17
	return c.SendString("Login")
18
}
19
20
func (a *AuthController) Register(c *fiber.Ctx) error {
21
	return c.SendString("Register")
22
}
23
24
func (a *AuthController) Logout(c *fiber.Ctx) error {
25
	return c.SendString("Logout")
26
}
27
28
func (a *AuthController) RefreshToken(c *fiber.Ctx) error {
29
	return c.SendString("RefreshToken")
30
}
31