services

package
v0.0.0-...-2258a73 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

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

func (*AuthService) CheckPasswordHash

func (_s *AuthService) CheckPasswordHash(password, hash string) bool

func (*AuthService) CreateNewUser

func (_s *AuthService) CreateNewUser(newUser models.NewUserRequest) *entities.UserEntity

func (*AuthService) GenerateRandomString

func (_s *AuthService) GenerateRandomString(n int) (string, error)

func (*AuthService) HashPassword

func (_s *AuthService) HashPassword(password string) (string, error)

func (*AuthService) New

func (_s *AuthService) New(appConfig *config.AppConfig, db *database.AppDBConn)

func (*AuthService) VerifyNewUser

func (_s *AuthService) VerifyNewUser(token string) bool

type EmailService

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

func (*EmailService) SendEmail

func (_s *EmailService) SendEmail(fromUsername string, fromEmail string, subject string, toUsername string, toEmail string, htmlContent string)

Jump to

Keyboard shortcuts

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