extractor

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fetchers = map[string]Fetcher{
	"codechef":      FetchCodechefContests,
	"codeforces":    FetchCodeforcesContests,
	"leetcode":      FetchLeetcodeContests,
	"atcoder":       FetchAtcoderContests,
	"hackerrank":    FetchHackerrankContests,
	"geeksforgeeks": FetchGeeksforGeeksContests,
	"code360":       FetchCode360Contests,
}
View Source
var Platforms = []string{
	"codechef",
	"codeforces",
	"leetcode",
	"atcoder",
	"hackerrank",
	"geeksforgeeks",
	"code360",
}

Functions

func GenerateContestID

func GenerateContestID(platform string, startTime int64) string

Types

type Contest

type Contest struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	URL       string `json:"url"`
	StartTime int64  `json:"start_time"`
	EndTime   int64  `json:"end_time"`
	Duration  int64  `json:"duration"`
	Platform  string `json:"platform"`
}

func FetchAtcoderContests

func FetchAtcoderContests() ([]Contest, error)

func FetchCode360Contests

func FetchCode360Contests() ([]Contest, error)

func FetchCodechefContests

func FetchCodechefContests() ([]Contest, error)

func FetchCodeforcesContests

func FetchCodeforcesContests() ([]Contest, error)

func FetchGeeksforGeeksContests

func FetchGeeksforGeeksContests() ([]Contest, error)

func FetchHackerrankContests

func FetchHackerrankContests() ([]Contest, error)

func FetchLeetcodeContests

func FetchLeetcodeContests() ([]Contest, error)

type Fetcher

type Fetcher func() ([]Contest, error)

Jump to

Keyboard shortcuts

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