Documentation ¶
Index ¶
- type Profile
- type ProfilesHandlers
- type ProfilesService
- func (s *ProfilesService) Follow(ctx context.Context, followeeUsername string, followerUsername string) (*Profile, error)
- func (s *ProfilesService) GetProfileByUsername(ctx context.Context, username string, follower *string) (*Profile, error)
- func (s *ProfilesService) IsFollowing(ctx context.Context, followeeUsername string, followerUsername string) (bool, error)
- func (s *ProfilesService) Unfollow(ctx context.Context, followeeUsername string, followerUsername string) (*Profile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfilesHandlers ¶
type ProfilesHandlers struct {
ProfilesService ProfilesService
}
func NewProfilesHandlers ¶
func NewProfilesHandlers(profilesService ProfilesService) ProfilesHandlers
func (*ProfilesHandlers) FollowUser ¶
func (h *ProfilesHandlers) FollowUser(w http.ResponseWriter, r *http.Request)
func (*ProfilesHandlers) GetProfile ¶
func (h *ProfilesHandlers) GetProfile(w http.ResponseWriter, r *http.Request)
func (*ProfilesHandlers) UnfollowUser ¶
func (h *ProfilesHandlers) UnfollowUser(w http.ResponseWriter, r *http.Request)
type ProfilesService ¶
type ProfilesService struct { UsersClient users.UsersClient Firestore firestore.Client }
func NewProfilesService ¶
func NewProfilesService(usersClient users.UsersClient, firestore firestore.Client) ProfilesService
func (*ProfilesService) GetProfileByUsername ¶
func (*ProfilesService) IsFollowing ¶
Click to show internal directories.
Click to hide internal directories.