service

package
v0.0.0-...-8b0b209 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseConnectionProblem = errors.New("occur a problem with database connection")
	ErrInvalidEmailOrPassword    = errors.New("invalid email or password")
)

AuthService context generic error

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	Login(email, password string) (string, error)
}

AuthService defines how an auth service should be implemented

func NewAuthService

func NewAuthService(
	tokenRepository repository.TokenRepository,
	userRepository repository.UserRepository,
) AuthService

NewAuthService creates an auth service instance

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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