datasource

package
v2.0.0-...-0eae77d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

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 WebScrapper interface {
	ScrapeNameOfDailyChallenge() (string, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL