Documentation ¶
Index ¶
- func NewPostgreDB(cfg *repository.DBConfig) (*sqlx.DB, error)
- type ProfilesRepository
- func (r *ProfilesRepository) CreateProfile(ctx context.Context, profile *models.Profile) (err error)
- func (r *ProfilesRepository) DeleteProfile(ctx context.Context, accountID string) (restx repository.Transaction, err error)
- func (r *ProfilesRepository) GetEmail(ctx context.Context, accountID string) (email string, err error)
- func (r *ProfilesRepository) GetProfile(ctx context.Context, accountID string) (profile models.RepositoryProfile, err error)
- func (r *ProfilesRepository) GetProfilePictureID(ctx context.Context, accountID string) (pictureID string, err error)
- func (r *ProfilesRepository) UpdateProfilePictureID(ctx context.Context, accountID, pictureID string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgreDB ¶
func NewPostgreDB(cfg *repository.DBConfig) (*sqlx.DB, error)
Types ¶
type ProfilesRepository ¶
type ProfilesRepository struct {
// contains filtered or unexported fields
}
func NewProfilesRepository ¶
func NewProfilesRepository(db *sqlx.DB, logger *logrus.Logger) *ProfilesRepository
func (*ProfilesRepository) CreateProfile ¶
func (*ProfilesRepository) DeleteProfile ¶
func (r *ProfilesRepository) DeleteProfile(ctx context.Context, accountID string) (restx repository.Transaction, err error)
func (*ProfilesRepository) GetProfile ¶
func (r *ProfilesRepository) GetProfile(ctx context.Context, accountID string) (profile models.RepositoryProfile, err error)
func (*ProfilesRepository) GetProfilePictureID ¶
func (*ProfilesRepository) UpdateProfilePictureID ¶
func (r *ProfilesRepository) UpdateProfilePictureID(ctx context.Context, accountID, pictureID string) (err error)
Click to show internal directories.
Click to hide internal directories.