service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents the user domain service layer.

func NewService

func NewService(repo UserRepo) *Service

func (*Service) GetUserByEmail

func (s *Service) GetUserByEmail(ctx context.Context, email string) (model.User, error)

type UserRepo

type UserRepo interface {
	GetUserByEmail(ctx context.Context, email string) (model.User, error)
}

UserRepo abstracts the data access layer.

Jump to

Keyboard shortcuts

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