ports

package
v0.0.0-...-477ec14 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryRespositoryContracts

type InMemoryRespositoryContracts interface {
	AddToken(token, id string) error
	RevokeToken(token string) error
	ReceiverToken(claims *models.Claims) (string, error)
}

type UserRepositoryContracts

type UserRepositoryContracts interface {
	RegisterUser(user *models.User) error
	LoginUser(user *models.User) error

	GetUsers(users *[]models.User) error
	GetUserById(user *models.User) error
	UpdateUserById(id *uuid.UUID, updateItem map[string]interface{}) error
	DeleteUser(user *models.User) error
}

type UserServiceContract

type UserServiceContract interface {
	RegisterUser(user *models.User) error
	LoginUser(user *models.User) (string, string, error)
	Logout(token string) error
	RefreshToken(refreshToken string) (string, error)

	GetUserProfile(user *models.User) error
	UpdateUserProfile(user *models.User) error
	ChangePassword(user *models.User) error

	GetUsers(users *[]models.User) error
	GetUserById(user *models.User) error
	UpdateUserById(user *models.User) error
	PromoteUserToAdmin(userID *uuid.UUID) error
	DeactivateUser(userID *uuid.UUID) error
	ActivateUser(userID *uuid.UUID) error
	DeleteUser(user *models.User) error
}

Jump to

Keyboard shortcuts

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