service

package
v0.0.0-...-d9bd7fb Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProfilesService

func NewProfilesService(repo repository.ProfileRepository,
	logger *logrus.Logger, imagesService ImagesService) *profilesService

Types

type ImagesService

type ImagesService interface {
	GetProfilePictureURL(ctx context.Context, pictureID string) string
	ResizeImage(ctx context.Context, image []byte) ([]byte, error)
	UploadImage(ctx context.Context, image []byte) (string, error)
	DeleteImage(ctx context.Context, pictureID string) error
	ReplaceImage(ctx context.Context, image []byte, pictureID string, createIfNotExist bool) (string, error)
}

type ProfilesService

type ProfilesService interface {
	GetProfile(ctx context.Context, accountID string) (models.Profile, error)
	UpdateProfilePicture(ctx context.Context, accountID string, image []byte) error
	GetEmail(ctx context.Context, accountID string) (string, error)
	DeleteProfilePicture(ctx context.Context, accountID string) error
}

Jump to

Keyboard shortcuts

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