Versions in this module Expand all Collapse all v1 v1.0.1 Apr 9, 2023 Changes in this version + func RemoveCredentials() + func SetCredentials(session string, csrfToken string) + type AcSubmission struct + Id string + Timestamp string + Title string + TitleSlug string + func GetUserRecentAcSubmissions(username string, pageSize int) ([]AcSubmission, error) + type Author struct + ActiveBadge Badge + IsActive bool + IsDiscussAdmin bool + IsDiscussStaff bool + NameColor string + Profile AuthorProfile + Username string + type AuthorProfile struct + Reputation int + UserAvatar string + type Badge struct + DisplayName string + Icon string + type CoinReward struct + Date string + Description string + Id string + Score int + type Comment struct + Id int64 + NumChildren int + Pinned bool + Post Post + func GetCommentReplies(commentId int64) ([]Comment, error) + func GetDiscussionComments(topicId int64, orderBy string, offset int, pageSize int) ([]Comment, error) + type Company struct + Description string + Logo string + Name string + type Contest struct + Company Company + ContainsPremium bool + ContestMeta ContestMeta + Questions []ContestProblemInfo + Registered bool + func GetContestInfo(contestSlug string) (Contest, error) + type ContestMeta struct + Description string + DiscussTopicId int64 + Duration int64 + Id int64 + IsPrivate bool + IsVirtual bool + OriginStartTime int64 + StartTime int64 + Title string + TitleSlug string + type ContestProblemInfo struct + Credit int + Id int + QuestionId int + Title string + TitleSlug string + type ContestRanking struct + IsPast bool + Questions []ContestProblemInfo + Ranks []ParticipantDetails + Submissions []map[string]SubmissionInContest + Time float64 + TotalPage int + TotalUser int + func GetContestRanking(contestSlug string, page int) (ContestRanking, error) + type DifficultyCount struct + Count int + Difficulty string + type DifficultyPercentage struct + Difficulty string + Percentage float32 + type Discussion struct + HideFromTrending bool + Id int64 + Pinned bool + Post Post + Subscribed bool + Tags []string + Title string + TopLevelCommentCount int + ViewCount int + func GetDiscussion(topicId int64) (Discussion, error) + type DiscussionList struct + Data []DiscussionListItem + TotalNum int + func GetDiscussions(categories []string, tags []string, orderBy string, searchQuery string, ...) (DiscussionList, error) + type DiscussionListItem struct + Cursor string + Node DiscussionNode + type DiscussionNode struct + CommentCount int + Id string + LastComment Comment + Pinned bool + Post Post + Tags []struct{ ... } + Title string + ViewCount int + type IQuery interface + type IUtil interface + MakeGraphQLRequest func(payload string, resultRef interface{}) error + type ParticipantDetails struct + ContestId int + CountryCode string + CountryName string + DataRegion string + FinishTime int64 + GlobalRanking int + Rank int + Score int + UserBadge struct{ ... } + UserSlug string + Username string + UsernameColor string + type Post struct + Author Author + AuthorIsModerator bool + CoinRewards []CoinReward + Content string + CreationDate int64 + Id int + IsHidden bool + IsOwnPost bool + Status string + UpdationDate int64 + VoteCount int + VoteStatus int + type Problem struct + AcRate float32 + Difficulty string + FreqBar float32 + FrontendQuestionId string + IsFavor bool + PaidOnly bool + QuestionId string + Stats string + Status string + Title string + TitleSlug string + TopicTags []TopicTag + type ProblemContent struct + Content string + func GetProblemContentByTitleSlug(titleSlug string) (ProblemContent, error) + type ProblemList struct + Problems []Problem + Total int + func GetAllProblems(offset int, pageSize int) (ProblemList, error) + func GetTopInterviewProblems(offset int, pageSize int) (ProblemList, error) + type ProblemsByTopic struct + Questions []Problem + TopicName string + TopicSlug string + func GetProblemsByTopic(topicSlug string) (ProblemsByTopic, error) + type SubmissionInContest struct + ContestId int + DataRegion string + Date int64 + FailCount int + Id int + QuestionId int + Status int + SubmissionId int64 + type TagCount struct + ProblemsSolved int + TagName string + TagSlug string + type TagProblemCounts struct + Advanced []TagCount + Fundamental []TagCount + Intermediate []TagCount + func GetUserSolveCountByProblemTag(username string) (TagProblemCounts, error) + type TopicTag struct + Id string + Name string + Slug string + type UserCalendar struct + ActiveYears []int + DccBadges []struct{ ... } + Streak int + SubmissionCalendar string + TotalActiveDays int + func GetUserProfileCalendar(username string) (UserCalendar, error) + type UserContestRanking struct + AttendedContestsCount int + Badge struct{ ... } + GlobalRanking int + Rating float32 + TopPercentage float32 + TotalParticipants int + type UserContestRankingDetails struct + UserContestRanking UserContestRanking + UserContestRankingHistory []UserContestRankingHistory + func GetUserContestRankingHistory(username string) (UserContestRankingDetails, error) + type UserContestRankingHistory struct + Attended bool + Contest struct{ ... } + FinishTimeInSeconds int + ProblemsSolved int + Ranking int + Rating float32 + TotalProblems int + TrendDirection string + type UserProfile struct + AboutMe string + CategoryDiscussCount int + CategoryDiscussCountDiff int + Company string + CountryName string + JobTitle string + PostViewCount int + PostViewCountDiff int + Ranking int + RealName string + Reputation int + ReputationDiff int + School string + SkillTags []string + SolutionCount int + SolutionCountDiff int + UserAvatar string + Websites []string + type UserPublicProfile struct + ContestBadge struct{ ... } + GithubUrl string + LinkedinUrl string + Profile UserProfile + TwitterUrl string + Username string + func GetUserPublicProfile(username string) (UserPublicProfile, error) + type UserSolveCountByDifficulty struct + BeatsStats []DifficultyPercentage + SubmitStatsGlobal struct{ ... } + type UserSolveCountByDifficultyDetails struct + AllQuestionsCount []DifficultyCount + SolveCount UserSolveCountByDifficulty + func GetUserSolveCountByDifficulty(username string) (UserSolveCountByDifficultyDetails, error) + type Util struct + func (u *Util) MakeGraphQLRequest(payload string, resultRef interface{}) error v1.0.0 Mar 11, 2023