auth_service

package
v0.0.0-...-0064678 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestLogger

func TestLogger(t *testing.T) *logrus.Entry

TestLogger ...

Types

type AuthService

type AuthService interface {
	SignupUser(ctx context.Context, request *authdto.SignupUserRequest) (*authdto.SignupUserResponse, error)
	LoginUser(ctx context.Context, request *authdto.LoginUserRequest) (*authdto.LoginUserResponse, error)
}

func NewAuthService

func NewAuthService(log *logrus.Entry, db *authdb.Repository) AuthService

type AuthServiceImpl

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

func (*AuthServiceImpl) LoginUser

func (*AuthServiceImpl) SignupUser

type Registry

type Registry struct {
	AuthService AuthService
}

func NewRegistry

func NewRegistry(log *logrus.Entry, repository *authdb.Repository) *Registry

type TestRepository

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

TestRepository ...

func TestRepositories

func TestRepositories(t *testing.T, ctrl *gomock.Controller) (*auth_db.Repository, *TestRepository)

TestRepositories ...

Jump to

Keyboard shortcuts

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