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 }
Click to show internal directories.
Click to hide internal directories.