loginAuth

package
v0.0.0-...-9de6353 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepositoryLogin

func NewRepositoryLogin(db *gorm.DB) *repository

func NewServiceLogin

func NewServiceLogin(repository Repository) *service

Types

type InputLogin

type InputLogin struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

type InvalidCredentialsError

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

func (*InvalidCredentialsError) Error

func (e *InvalidCredentialsError) Error() string

type Repository

type Repository interface {
	LoginRepository(input *model.User) (*model.User, error)
}

type Service

type Service interface {
	LoginService(input *InputLogin) (*model.User, error)
}

type UserNotFoundError

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

func (*UserNotFoundError) Error

func (e *UserNotFoundError) Error() string

Jump to

Keyboard shortcuts

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