MCPcopy Create free account

hub / github.com/arman-aminian/twitter-backend / functions

Functions178 in github.com/arman-aminian/twitter-backend

↓ 1 callersFunctionremoveIndex
(s []model.Owner, index int)
handler/user.go:594
MethodAddCommentToTweet
(parent *model.Tweet, child *model.CommentTweet)
store/tweet.go:72
MethodAddFollower
(u *model.User, follower *model.User)
store/user.go:69
MethodAddHashtag
(ht *model.Hashtag)
store/hashtags.go:29
MethodAddLog
(u *model.User, e *model.Event)
store/user.go:157
MethodAddNotification
(u *model.User, e *model.Event)
store/user.go:166
MethodAddTweet
(u *model.User, t *model.Tweet)
store/user.go:136
MethodCreateTweet
(t *model.Tweet)
store/tweet.go:22
MethodCreateTweet
CreateTweet godoc @Summary Create an tweet @Description Create an tweet @ID create-tweet @Tags tweet @Accept json @Produce json @Param tweet body tw
handler/tweet.go:30
MethodDeleteTweet
DeleteTweet godoc @Description Delete a tweet from a user's tweets based on the token. Auth is required. @ID delete-tweet @Tags tweet @Produce json @
handler/tweet.go:182
MethodDeleteTweetHashtags
(t *model.Tweet, hashtags map[string]int)
store/hashtags.go:82
MethodDummy
(c echo.Context)
handler/user.go:15
MethodExtractHashtags
(t *model.Tweet)
store/tweet.go:140
MethodFollow
Follow godoc @Summary Follow a user @Description Follow a user by username @ID follow @Tags follow @Accept json @Produce json @Param username path s
handler/user.go:290
MethodGetAllTweets
()
store/tweet.go:60
MethodGetByEmail
(email string)
store/user.go:57
MethodGetFollowingAndFollowersList
GetFollowingAndFollowersList godoc @Summary Get the list of followings and followers of a user. Auth is required. @Description Get the list of followi
handler/user.go:476
MethodGetHashtagByName
O(n + O(exists))
hashtag/hashtag.go:10
MethodGetHashtagTweets
(name string)
store/hashtags.go:106
MethodGetHeaderPictureFile
GetHeaderPictureFile godoc @Summary Get the header picture @Description Get the header picture of a user based on the filename @ID get-header-picture
handler/user.go:269
MethodGetLogs
GetLogs godoc @Description Get the list of everything the user has done (logs). @ID get-logs @Tags logs @Produce json @Success 200 {object} EventList
handler/user.go:497
MethodGetNotifications
GetNotifications godoc @Description Get the list of everything done with the use being the target (notifications). @ID get-notifications @Tags notific
handler/user.go:520
MethodGetProfilePictureFile
GetProfilePictureFile godoc @Summary Get the profile picture @Description Get the profile picture of a user based on the filename @ID get-profile-pict
handler/user.go:256
MethodGetSuggestions
GetSuggestions godoc @Description Get the list of the users suggested to a user (followers of its followings) @ID get-suggestions @Tags suggestions @P
handler/user.go:540
MethodGetTimeline
GetTimeline godoc @Summary Get the timeline of your account @Description Get tweets of your followings. Auth is required. @ID get-timeline @Tags timel
handler/user.go:375
MethodGetTimelineFromTweetIDs
(tweetsIDs []primitive.ObjectID, day int)
store/tweet.go:154
MethodGetTrends
()
store/hashtags.go:132
MethodGetTrends
(c echo.Context)
handler/hashtag.go:31
MethodGetTweet
GetTweet godoc @Description Create an tweet. Auth is optional. @ID get-tweet @Tags tweet @Produce json @Success 201 {object} singleTweetResponse @Fai
handler/tweet.go:127
MethodGetTweetAssetFile
(c echo.Context)
handler/tweet.go:111
MethodGetTweetById
(id *string)
store/tweet.go:32
MethodGetTweetIdListFromUsernameList
(usernames []string)
store/user.go:188
MethodGetTweetLikeAndRetweetList
GetTweetLikeAndRetweetList godoc @Description Get the list of users who liked and retweeted this tweet. Auth not required. @ID get-likes-retweets-list
handler/tweet.go:242
MethodGetTweetSearchResult
(query string)
store/tweet.go:172
MethodGetTweets
(tweets []string)
store/tweet.go:42
MethodGetTweets
GetTweets godoc @Description Get all of the tweets of a user. Auth is required. @ID get-tweet @Tags tweet @Produce json @Success 201 {object} singleT
handler/tweet.go:150
MethodGetUserListFromUsernameList
(usernames []string)
user/user.go:26
MethodGetUserListFromUsernameList
(usernames []string)
store/user.go:175
MethodGetUsernameSearchResult
(username string)
store/user.go:205
MethodIsFollower
(username, followerUsername string)
store/user.go:110
MethodLike
Like godoc @Description Like a tweet. Auth is required. @ID like @Tags like @Produce json @Param id path string true "id of the article that you want
handler/tweet.go:267
MethodLikeTweet
(t *model.Tweet, u *model.User)
store/tweet.go:92
MethodReadDoc
()
docs/docs.go:1518
MethodRemoveComment
(t *model.Tweet, id *primitive.ObjectID)
store/tweet.go:81
MethodRemoveFollower
(u *model.User, follower *model.User)
store/user.go:83
MethodRemoveHashtag
O(n)
hashtag/hashtag.go:11
MethodRemoveTweet
(u *model.User, id *string)
user/user.go:21
MethodRemoveTweet
(t *model.Tweet)
store/tweet.go:27
MethodRemoveTweet
(u *model.User, id *string)
store/user.go:142
MethodRetweet
(t *model.Tweet, u *model.User)
store/tweet.go:116
MethodRetweet
Retweet godoc @Description retweet a tweet. Auth is required. @ID retweet @Tags retweet @Produce json @Param id path string true "id of the article t
handler/tweet.go:361
MethodSearchHashtag
(c echo.Context)
handler/hashtag.go:45
MethodSearchTweets
SearchTweets godoc @Summary Search tweets related to query @Description Search all the tweets related to the query. @ID search-tweets @Tags search @Ac
handler/user.go:450
MethodSearchUsernames
SearchUsernames godoc @Summary Search a user by its username @Description Search by specifying the username. Auth is optional. @ID search-username @Ta
handler/user.go:427
FunctionStartUpTrends
(ts *store.TweetStore, h *handler.Handler)
main.go:53
FunctionTestFollowSuccess
(t *testing.T)
handler/user_test.go:172
FunctionTestGetProfileSuccess
(t *testing.T)
handler/user_test.go:117
FunctionTestLoginFailedNotFound
(t *testing.T)
handler/user_test.go:66
FunctionTestLoginFailedWrongPassword
(t *testing.T)
handler/user_test.go:75
FunctionTestLoginSuccess
(t *testing.T)
handler/user_test.go:53
FunctionTestSignUpFailed
(t *testing.T)
handler/user_test.go:45
FunctionTestSignUpSuccess
(t *testing.T)
handler/user_test.go:24
FunctionTestUpdateProfileSuccess
(t *testing.T)
handler/user_test.go:145
FunctionTestUpdateUserSuccess
(t *testing.T)
handler/user_test.go:83
MethodUnFollow
Unfollow godoc @Summary Unfollow a user @Description Unfollow a user by username @ID unfollow @Tags follow @Accept json @Produce json @Param usernam
handler/user.go:341
MethodUnLike
UnLike godoc @Description UnLike a tweet. Auth is required. @ID unlike @Tags like @Produce json @Param id path string true "id of the article that yo
handler/tweet.go:319
MethodUnLikeTweet
(t *model.Tweet, u *model.User)
store/tweet.go:101
MethodUnRetweet
(t *model.Tweet, u *model.User)
store/tweet.go:125
MethodUnRetweet
UnRetweet godoc @Description UnRetweet a tweet. Auth is required. @ID unretweet @Tags unretweet @Produce json @Param id path string true "id of the a
handler/tweet.go:417
MethodUpdate
(old *model.User, new *model.User)
user/user.go:11
MethodUpdate
(old *model.User, new *model.User)
store/user.go:31
MethodUpdateProfile
(u *model.User)
store/user.go:44
MethodUpdateProfile
UpdateProfile godoc @Summary Update a user's profile @Description Update user profile based on 4 entries: name, bio, and pictures @ID update-profile @
handler/user.go:181
Methodbind
(c echo.Context, u *model.User)
handler/request.go:83
Methodbind
(c echo.Context, u *model.User)
handler/request.go:116
Functioninit
()
docs/docs.go:1540
Functionmain
()
main.go:18
Methodpopulate
(u *model.User)
handler/request.go:68
← previous101–178 of 178, ranked by callers