_interface

package
v0.0.0-...-acefb17 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailService

type EmailService interface {
	SendConfirmationEmail(recipientEmail, confirmationLink string) error
	SendResetPasswordEmail(recipientEmail, resetLink string) error
}

type UserService

type UserService interface {
	GoogleAuthCallback(code string) (string, error)
	GoogleTokens(token string) (string, string, error)
	Login(email, password string) (string, string, error)
	RegisterUser(email string, password string) error
	ConfirmUser(token string) error
	ForgotPassword(email string) error
	ResetPassword(token, newPassword string) error
	RenewAccessToken(refreshToken string) (string, error)
	Logout(userId primitive.ObjectID) error
	GetUserProfile(userId primitive.ObjectID) (*entity.User, []byte, error)
	UpdateUserProfile(userId primitive.ObjectID, logo []byte, name string) error
	FacebookAuthCallback(code, workspaceId string) error
}

Jump to

Keyboard shortcuts

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