Documentation ¶
Index ¶
- Constants
- Variables
- func ARMGDDNFormatter(name string) string
- func AddGameInfoManually(gameID primitive.ObjectID, platform string, plateformID int) (*model.GameInfo, error)
- func BuildCrawlerMap(logger *zap.Logger) map[string]Crawler
- func ChovkaFormatter(name string) string
- func DODIFormatter(name string) string
- func FormatName(name string) string
- func FreeGOGFormatter(name string) string
- func GenerateGameInfo(platform string, id int) (*model.GameInfo, error)
- func GenerateIGDBGameInfo(id int) (*model.GameInfo, error)
- func GenerateSteamGameInfo(id int) (*model.GameInfo, error)
- func GetIGDBAppDetail(id int) (*model.IGDBGameDetail, error)
- func GetIGDBAppDetailCache(id int) (*model.IGDBGameDetail, error)
- func GetIGDBCompany(id int) (string, error)
- func GetIGDBCompanyCache(id int) (string, error)
- func GetIGDBID(name string) (int, error)
- func GetIGDBIDBySteamID(id int) (int, error)
- func GetIGDBIDBySteamIDCache(id int) (int, error)
- func GetIGDBIDCache(name string) (int, error)
- func GetIGDBIDsBySteamIDs(ids []int) (map[int]int, error)
- func GetIGDBIDsBySteamIDsCache(ids []int) (map[int]int, error)
- func GetSteam250(url string) ([]*model.GameInfo, error)
- func GetSteam250BestOfTheYear() ([]*model.GameInfo, error)
- func GetSteam250BestOfTheYearCache() ([]*model.GameInfo, error)
- func GetSteam250Cache(k string, f func() ([]*model.GameInfo, error)) ([]*model.GameInfo, error)
- func GetSteam250MostPlayed() ([]*model.GameInfo, error)
- func GetSteam250MostPlayedCache() ([]*model.GameInfo, error)
- func GetSteam250Top250() ([]*model.GameInfo, error)
- func GetSteam250Top250Cache() ([]*model.GameInfo, error)
- func GetSteam250WeekTop50() ([]*model.GameInfo, error)
- func GetSteam250WeekTop50Cache() ([]*model.GameInfo, error)
- func GetSteamAppDetail(id int) (*model.SteamAppDetail, error)
- func GetSteamAppDetailCache(id int) (*model.SteamAppDetail, error)
- func GetSteamID(name string) (int, error)
- func GetSteamIDByIGDBID(IGDBID int) (int, error)
- func GetSteamIDByIGDBIDCache(IGDBID int) (int, error)
- func GetSteamIDCache(name string) (int, error)
- func GnarlyFormatter(name string) string
- func KaOsKrewFormatter(name string) string
- func LoginTwitch() (string, error)
- func New1337xCrawler(source string, formatter Formatter, logger *zap.Logger) *s1337xCrawler
- func OnlineFixFormatter(name string) string
- func OrganizeGameItem(game *model.GameItem) (*model.GameInfo, error)
- func OrganizeGameItemManually(gameID primitive.ObjectID, platform string, platformID int) (*model.GameInfo, error)
- func OrganizeGameItemWithIGDB(id int, game *model.GameItem) (*model.GameInfo, error)
- func OrganizeGameItemWithSteam(id int, game *model.GameItem) (*model.GameInfo, error)
- func SteamRIPFormatter(name string) string
- func SupplementPlatformIDToGameInfo(logger *zap.Logger) error
- func XatabFormatter(name string) string
- type ARMGDDNCrawler
- type ChovkaCrawler
- func (c *ChovkaCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *ChovkaCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *ChovkaCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *ChovkaCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *ChovkaCrawler) GetTotalPageNum() (int, error)
- func (c *ChovkaCrawler) Name() string
- type Crawler
- type DODICrawler
- func (c *DODICrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *DODICrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *DODICrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *DODICrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *DODICrawler) GetTotalPageNum() (int, error)
- func (c *DODICrawler) Name() string
- type FitGirlCrawler
- func (c *FitGirlCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *FitGirlCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *FitGirlCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *FitGirlCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *FitGirlCrawler) GetTotalPageNum() (int, error)
- func (c *FitGirlCrawler) Name() string
- type Formatter
- type FreeGOGCrawler
- type GOGGamesCrawler
- func (c *GOGGamesCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *GOGGamesCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *GOGGamesCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *GOGGamesCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *GOGGamesCrawler) GetTotalPageNum() (int, error)
- func (c *GOGGamesCrawler) Name() string
- type GameData
- type GnarlyCrawler
- type KaOsKrewCrawler
- func (c *KaOsKrewCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *KaOsKrewCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *KaOsKrewCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *KaOsKrewCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *KaOsKrewCrawler) GetTotalPageNum() (int, error)
- func (c *KaOsKrewCrawler) Name() string
- type OnlineFixCrawler
- func (c *OnlineFixCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *OnlineFixCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *OnlineFixCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *OnlineFixCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *OnlineFixCrawler) GetTotalPageNum() (int, error)
- func (c *OnlineFixCrawler) Name() string
- type PagedCrawler
- type SimpleCrawler
- type SteamRIPCrawler
- type XatabCrawler
- func (c *XatabCrawler) Crawl(page int) ([]*model.GameItem, error)
- func (c *XatabCrawler) CrawlAll() ([]*model.GameItem, error)
- func (c *XatabCrawler) CrawlByUrl(url string) (*model.GameItem, error)
- func (c *XatabCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
- func (c *XatabCrawler) GetTotalPageNum() (int, error)
- func (c *XatabCrawler) Name() string
Constants ¶
View Source
const DODIName string = "DODI-torrents"
View Source
const KaOsKrewName string = "KaOsKrew-torrents"
Variables ¶
View Source
var TwitchToken string
Functions ¶
func ARMGDDNFormatter ¶
func AddGameInfoManually ¶
func ChovkaFormatter ¶
func DODIFormatter ¶
func FormatName ¶
func FreeGOGFormatter ¶
func GetIGDBAppDetail ¶
func GetIGDBAppDetail(id int) (*model.IGDBGameDetail, error)
func GetIGDBAppDetailCache ¶
func GetIGDBAppDetailCache(id int) (*model.IGDBGameDetail, error)
func GetIGDBCompany ¶
func GetIGDBCompanyCache ¶
func GetIGDBIDBySteamID ¶
func GetIGDBIDBySteamIDCache ¶
func GetIGDBIDCache ¶
func GetSteam250Cache ¶
func GetSteam250MostPlayed ¶
func GetSteam250Top250 ¶
func GetSteam250Top250Cache ¶
func GetSteam250WeekTop50 ¶
func GetSteamAppDetail ¶
func GetSteamAppDetail(id int) (*model.SteamAppDetail, error)
func GetSteamAppDetailCache ¶
func GetSteamAppDetailCache(id int) (*model.SteamAppDetail, error)
func GetSteamID ¶
func GetSteamIDByIGDBID ¶
func GetSteamIDByIGDBIDCache ¶
func GetSteamIDCache ¶
func GnarlyFormatter ¶
func KaOsKrewFormatter ¶
func LoginTwitch ¶
func New1337xCrawler ¶
func OnlineFixFormatter ¶
func OrganizeGameItemWithIGDB ¶
id=0, means search id by name
func SteamRIPFormatter ¶
func XatabFormatter ¶
Types ¶
type ARMGDDNCrawler ¶
type ARMGDDNCrawler struct {
// contains filtered or unexported fields
}
func NewARMGDDNCrawler
deprecated
func NewARMGDDNCrawler(logger *zap.Logger) *ARMGDDNCrawler
Deprecated: ARMGDDN has changed resource distribution method
type ChovkaCrawler ¶
type ChovkaCrawler struct {
// contains filtered or unexported fields
}
func NewChovkaCrawler ¶
func NewChovkaCrawler(logger *zap.Logger) *ChovkaCrawler
func (*ChovkaCrawler) CrawlByUrl ¶
func (c *ChovkaCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*ChovkaCrawler) CrawlMulti ¶
func (c *ChovkaCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*ChovkaCrawler) GetTotalPageNum ¶
func (c *ChovkaCrawler) GetTotalPageNum() (int, error)
func (*ChovkaCrawler) Name ¶
func (c *ChovkaCrawler) Name() string
type DODICrawler ¶
type DODICrawler struct {
// contains filtered or unexported fields
}
func NewDODICrawler ¶
func NewDODICrawler(logger *zap.Logger) *DODICrawler
func (*DODICrawler) CrawlByUrl ¶
func (c *DODICrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*DODICrawler) CrawlMulti ¶
func (c *DODICrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*DODICrawler) GetTotalPageNum ¶
func (c *DODICrawler) GetTotalPageNum() (int, error)
func (*DODICrawler) Name ¶
func (c *DODICrawler) Name() string
type FitGirlCrawler ¶
type FitGirlCrawler struct {
// contains filtered or unexported fields
}
func NewFitGirlCrawler ¶
func NewFitGirlCrawler(logger *zap.Logger) *FitGirlCrawler
func (*FitGirlCrawler) CrawlByUrl ¶
func (c *FitGirlCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*FitGirlCrawler) CrawlMulti ¶
func (c *FitGirlCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*FitGirlCrawler) GetTotalPageNum ¶
func (c *FitGirlCrawler) GetTotalPageNum() (int, error)
func (*FitGirlCrawler) Name ¶
func (c *FitGirlCrawler) Name() string
type FreeGOGCrawler ¶
type FreeGOGCrawler struct {
// contains filtered or unexported fields
}
func NewFreeGOGCrawler
deprecated
func NewFreeGOGCrawler(logger *zap.Logger) *FreeGOGCrawler
Deprecated: Unable to get through cloudflare
func (*FreeGOGCrawler) CrawlByUrl ¶
func (c *FreeGOGCrawler) CrawlByUrl(url string) (*model.GameItem, error)
type GOGGamesCrawler ¶
type GOGGamesCrawler struct {
// contains filtered or unexported fields
}
func NewGOGGamesCrawler ¶
func NewGOGGamesCrawler(logger *zap.Logger) *GOGGamesCrawler
func (*GOGGamesCrawler) Crawl ¶
func (c *GOGGamesCrawler) Crawl(page int) ([]*model.GameItem, error)
func (*GOGGamesCrawler) CrawlByUrl ¶
func (c *GOGGamesCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*GOGGamesCrawler) CrawlMulti ¶
func (c *GOGGamesCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*GOGGamesCrawler) GetTotalPageNum ¶
func (c *GOGGamesCrawler) GetTotalPageNum() (int, error)
func (*GOGGamesCrawler) Name ¶
func (c *GOGGamesCrawler) Name() string
type GnarlyCrawler ¶
type GnarlyCrawler struct {
// contains filtered or unexported fields
}
func NewGnarlyCrawler ¶
func NewGnarlyCrawler(logger *zap.Logger) *GnarlyCrawler
type KaOsKrewCrawler ¶
type KaOsKrewCrawler struct {
// contains filtered or unexported fields
}
func NewKaOsKrewCrawler ¶
func NewKaOsKrewCrawler(logger *zap.Logger) *KaOsKrewCrawler
func (*KaOsKrewCrawler) Crawl ¶
func (c *KaOsKrewCrawler) Crawl(page int) ([]*model.GameItem, error)
func (*KaOsKrewCrawler) CrawlByUrl ¶
func (c *KaOsKrewCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*KaOsKrewCrawler) CrawlMulti ¶
func (c *KaOsKrewCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*KaOsKrewCrawler) GetTotalPageNum ¶
func (c *KaOsKrewCrawler) GetTotalPageNum() (int, error)
func (*KaOsKrewCrawler) Name ¶
func (c *KaOsKrewCrawler) Name() string
type OnlineFixCrawler ¶
type OnlineFixCrawler struct {
// contains filtered or unexported fields
}
func NewOnlineFixCrawler ¶
func NewOnlineFixCrawler(logger *zap.Logger) *OnlineFixCrawler
func (*OnlineFixCrawler) Crawl ¶
func (c *OnlineFixCrawler) Crawl(page int) ([]*model.GameItem, error)
func (*OnlineFixCrawler) CrawlAll ¶
func (c *OnlineFixCrawler) CrawlAll() ([]*model.GameItem, error)
func (*OnlineFixCrawler) CrawlByUrl ¶
func (c *OnlineFixCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*OnlineFixCrawler) CrawlMulti ¶
func (c *OnlineFixCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*OnlineFixCrawler) GetTotalPageNum ¶
func (c *OnlineFixCrawler) GetTotalPageNum() (int, error)
func (*OnlineFixCrawler) Name ¶
func (c *OnlineFixCrawler) Name() string
type PagedCrawler ¶
type SimpleCrawler ¶
type SimpleCrawler interface { Crawler }
type SteamRIPCrawler ¶
type SteamRIPCrawler struct {
// contains filtered or unexported fields
}
func NewSteamRIPCrawler ¶
func NewSteamRIPCrawler(logger *zap.Logger) *SteamRIPCrawler
func (*SteamRIPCrawler) CrawlByUrl ¶
func (c *SteamRIPCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*SteamRIPCrawler) Name ¶
func (c *SteamRIPCrawler) Name() string
type XatabCrawler ¶
type XatabCrawler struct {
// contains filtered or unexported fields
}
func NewXatabCrawler ¶
func NewXatabCrawler(logger *zap.Logger) *XatabCrawler
func (*XatabCrawler) CrawlByUrl ¶
func (c *XatabCrawler) CrawlByUrl(url string) (*model.GameItem, error)
func (*XatabCrawler) CrawlMulti ¶
func (c *XatabCrawler) CrawlMulti(pages []int) ([]*model.GameItem, error)
func (*XatabCrawler) GetTotalPageNum ¶
func (c *XatabCrawler) GetTotalPageNum() (int, error)
func (*XatabCrawler) Name ¶
func (c *XatabCrawler) Name() string
Click to show internal directories.
Click to hide internal directories.