Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProblemID ¶
Types ¶
type AtCoderProblemsClient ¶
type AtCoderProblemsClient struct {
// contains filtered or unexported fields
}
func NewAtCoderProblemsClient ¶
func NewAtCoderProblemsClient(httpClient *http.Client) *AtCoderProblemsClient
func (*AtCoderProblemsClient) GetAllProblems ¶
func (a *AtCoderProblemsClient) GetAllProblems(ctx context.Context) ([]*Problem, error)
type DownloadTestCasesParams ¶
type Problem ¶
type Problem struct { ID string `json:"id"` ContestID string `json:"contestId"` Title string `json:"title"` }
Problem represents AtCoder's problem metadata
type TestCase ¶
type TestCase struct { ContestID string `json:"contestId"` ProblemID string `json:"problemId"` ContestFolderName string `json:"contestFolderName"` FileName string `json:"fileName"` In string `json:"in"` Out string `json:"out"` }
TestCase represents AtCoder's problem testcase
type TestCaseClient ¶
type TestCaseClient struct {
// contains filtered or unexported fields
}
TestCaseClient represents AtCoder testcases client
func NewTestCaseClient ¶
func NewTestCaseClient(dropboxToken string, logger *zap.Logger) *TestCaseClient
func (*TestCaseClient) DownloadContestTestCases ¶
func (*TestCaseClient) DownloadTestCases ¶
func (c *TestCaseClient) DownloadTestCases(ctx context.Context, params *DownloadTestCasesParams) ([]*TestCase, error)
type TestCaseFile ¶
Click to show internal directories.
Click to hide internal directories.