Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SignIn(ctx context.Context, request SignInRequest) (*SignInResult, error) SignOut(ctx context.Context) error ProblemList(ctx context.Context) (*ProblemListResult, error) LanguageList(ctx context.Context) (*LanguageListResult, error) SubmissionList(ctx context.Context) (*SubmissionListResult, error) Submit(ctx context.Context, request SubmitRequest) (*SubmitResult, error) }
Client contains ugrade functionality
type LanguageListItem ¶
LanguageListItem represent single language when running `lang ls` command.
type LanguageListResult ¶
type LanguageListResult struct {
Languages []LanguageListItem
}
LanguageListResult represent result of calling `lang ls` command.
type ProblemListItem ¶
ProblemListItem represent single problem when running `problem ls` command.
type ProblemListResult ¶
type ProblemListResult struct {
Problems []ProblemListItem
}
ProblemListResult represent result of calling `problem ls` command.
type SignInRequest ¶
SignInRequest represent input for sign in command
type SignInResult ¶
SignInResult represent result of sign in command
type SubmissionListItem ¶
type SubmissionListItem struct { ID string ProblemName string LanguageName string IssuerName string Verdict string IssuedAt string }
SubmissionListItem represent single submission when running `submission ls` command.
type SubmissionListResult ¶
type SubmissionListResult struct {
Submissions []SubmissionListItem
}
SubmissionListResult represent result of calling `submission ls` command.
type SubmitRequest ¶
SubmitRequest represent input for submit command
type SubmitResult ¶
type SubmitResult struct {
ID string
}
SubmitResult represent result of submit command