Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQLApi ¶
type GraphQLApi interface { FetchBySlug(titleSlug string) (*model.QuestionQuery, error) FetchByNumber(id string) (*model.QuestionListQuery, error) FetchDailyChallengesOfMonth(year int, month int) (*model.DailyChallengesQuery, error) }
type GraphQLApiImpl ¶
type GraphQLApiImpl struct {
// contains filtered or unexported fields
}
func NewGraphQLApiImpl ¶
func NewGraphQLApiImpl(c *graphql.Client) *GraphQLApiImpl
func (*GraphQLApiImpl) FetchByNumber ¶
func (g *GraphQLApiImpl) FetchByNumber(id string) (*model.QuestionListQuery, error)
func (*GraphQLApiImpl) FetchBySlug ¶
func (g *GraphQLApiImpl) FetchBySlug(titleSlug string) (*model.QuestionQuery, error)
func (*GraphQLApiImpl) FetchDailyChallengesOfMonth ¶
func (g *GraphQLApiImpl) FetchDailyChallengesOfMonth(year int, month int) (*model.DailyChallengesQuery, error)
type WebScrapper ¶
type WebScrapperImpl ¶
type WebScrapperImpl struct {
// contains filtered or unexported fields
}
func NewWebScrapperImpl ¶
func NewWebScrapperImpl(c *colly.Collector) *WebScrapperImpl
func (*WebScrapperImpl) ScrapeNameOfDailyChallenge ¶
func (ws *WebScrapperImpl) ScrapeNameOfDailyChallenge() (string, error)
Click to show internal directories.
Click to hide internal directories.