auth

package
v0.0.0-...-d636fa7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rt *gin.Engine, db *gorm.DB)

func NewCtrl

func NewCtrl(reps interfaces.AuthService) *user_ctrl

func NewRepo

func NewRepo(db *gorm.DB) *auth_repo

func NewService

func NewService(reps interfaces.AuthRepo) *auth_service

Types

type RepoMock

type RepoMock struct {
	// contains filtered or unexported fields
}

func (*RepoMock) FindByEmail

func (m *RepoMock) FindByEmail(email string) (*models.User, error)

func (*RepoMock) RegisterEmail

func (m *RepoMock) RegisterEmail(data *models.User) (*models.User, error)

Jump to

Keyboard shortcuts

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