services

package
v0.0.0-...-1cc7bf3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

func NewUserService

func NewUserService(repo *repository.UserRepository) *UserService

func (*UserService) RefreshToken

func (s *UserService) RefreshToken(ctx context.Context, email, refreshToken string) (string, string, error)

func (*UserService) SignIn

func (s *UserService) SignIn(ctx context.Context, email, password string) (string, string, error)

func (*UserService) SignUp

func (s *UserService) SignUp(ctx context.Context, u *user.User) error

func (*UserService) ValidateToken

func (s *UserService) ValidateToken(ctx context.Context, token string) (bool, string, error)

func (*UserService) VerifyEmailToken

func (s *UserService) VerifyEmailToken(email, token string) error

Jump to

Keyboard shortcuts

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