Documentation
¶
Index ¶
- type Profile
- type ProfileData
- func (pd *ProfileData) AddProfile(githubUserID int, githubToken string, username string, avatarURL string, ...) error
- func (pd *ProfileData) AddProfileLanguages(githubUserID int, languages ...string) error
- func (pd *ProfileData) AddProfileSkills(githubUserID int, skills ...string) error
- func (pd *ProfileData) DeleteProfile(githubUserID int) error
- func (pd *ProfileData) GetProfile(githubUserID int) (*Profile, error)
- func (pd *ProfileData) GetProfileByUsername(username string) (*Profile, error)
- func (pd *ProfileData) RemoveProfileLanguages(githubUserID int, languages ...string) error
- func (pd *ProfileData) RemoveProfileSkills(githubUserID int, skills ...string) error
- func (pd *ProfileData) UpdateProfileAvatarURL(githubUserID int, avatarURL string) error
- func (pd *ProfileData) UpdateProfileBio(githubUserID int, bio string) error
- func (pd *ProfileData) UpdateProfileEmail(githubUserID int, email string) error
- func (pd *ProfileData) UpdateProfileToken(githubUserID int, githubToken string) error
- func (pd *ProfileData) UpdateProfileUsername(githubUserID int, username string) error
- type Profiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileData ¶
type ProfileData struct {
PDriver *db.PostgresDriver
}
func NewProfileData ¶
func NewProfileData(dbDriver *db.PostgresDriver) *ProfileData
func (*ProfileData) AddProfile ¶
func (*ProfileData) AddProfileLanguages ¶
func (pd *ProfileData) AddProfileLanguages(githubUserID int, languages ...string) error
func (*ProfileData) AddProfileSkills ¶
func (pd *ProfileData) AddProfileSkills(githubUserID int, skills ...string) error
func (*ProfileData) DeleteProfile ¶
func (pd *ProfileData) DeleteProfile(githubUserID int) error
func (*ProfileData) GetProfile ¶
func (pd *ProfileData) GetProfile(githubUserID int) (*Profile, error)
func (*ProfileData) GetProfileByUsername ¶
func (pd *ProfileData) GetProfileByUsername(username string) (*Profile, error)
func (*ProfileData) RemoveProfileLanguages ¶
func (pd *ProfileData) RemoveProfileLanguages(githubUserID int, languages ...string) error
func (*ProfileData) RemoveProfileSkills ¶
func (pd *ProfileData) RemoveProfileSkills(githubUserID int, skills ...string) error
func (*ProfileData) UpdateProfileAvatarURL ¶
func (pd *ProfileData) UpdateProfileAvatarURL(githubUserID int, avatarURL string) error
func (*ProfileData) UpdateProfileBio ¶
func (pd *ProfileData) UpdateProfileBio(githubUserID int, bio string) error
func (*ProfileData) UpdateProfileEmail ¶
func (pd *ProfileData) UpdateProfileEmail(githubUserID int, email string) error
func (*ProfileData) UpdateProfileToken ¶
func (pd *ProfileData) UpdateProfileToken(githubUserID int, githubToken string) error
func (*ProfileData) UpdateProfileUsername ¶
func (pd *ProfileData) UpdateProfileUsername(githubUserID int, username string) error
Click to show internal directories.
Click to hide internal directories.