Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (svc *AuthServiceImpl) LoginUser(ctx context.Context, request *authdto.LoginUserRequest) (*authdto.LoginUserResponse, error)
func (*AuthServiceImpl) SignupUser ¶
func (svc *AuthServiceImpl) SignupUser(ctx context.Context, request *authdto.SignupUserRequest) (*authdto.SignupUserResponse, error)
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 ...
Click to show internal directories.
Click to hide internal directories.