Versions in this module Expand all Collapse all v0 v0.2.4 Apr 23, 2024 v0.2.3 Apr 10, 2024 Changes in this version type ContestSolutions + NextBeginID int64 v0.2.2 Mar 24, 2024 v0.2.1 Mar 17, 2024 Changes in this version type CreateContestParticipantForm + GroupID *int64 v0.2.0 Feb 11, 2024 Changes in this version + type Client struct + Headers map[string]string + func NewClient(endpoint string, options ...ClientOption) *Client + func (c *Client) CreateCompiler(ctx context.Context, form CreateCompilerForm) (Compiler, error) + func (c *Client) CreateContestParticipant(ctx context.Context, contest int64, form CreateContestParticipantForm) (ContestParticipant, error) + func (c *Client) CreateProblem(ctx context.Context, form CreateProblemForm) (Problem, error) + func (c *Client) CreateRole(ctx context.Context, name string) (Role, error) + func (c *Client) CreateSetting(ctx context.Context, form CreateSettingForm) (Setting, error) + func (c *Client) CreateUserRole(ctx context.Context, login string, role string) (Role, error) + func (c *Client) DeleteCompiler(ctx context.Context, id int64) (Compiler, error) + func (c *Client) DeleteProblem(ctx context.Context, id int64) (Problem, error) + func (c *Client) DeleteRole(ctx context.Context, name any) (Role, error) + func (c *Client) DeleteUserRole(ctx context.Context, login string, role string) (Role, error) + func (c *Client) Health(ctx context.Context) error + func (c *Client) Locale(ctx context.Context) (Locale, error) + func (c *Client) Login(ctx context.Context, login, password string) (Session, error) + func (c *Client) Logout(ctx context.Context) error + func (c *Client) ObserveCompilers(ctx context.Context) (Compilers, error) + func (c *Client) ObserveContest(ctx context.Context, id int64) (Contest, error) + func (c *Client) ObserveContestSolution(ctx context.Context, id int64, solutionID int64) (ContestSolution, error) + func (c *Client) ObserveContestSolutions(ctx context.Context, id int64) (ContestSolutions, error) + func (c *Client) ObserveContestStandings(ctx context.Context, id int64) (ContestStandings, error) + func (c *Client) ObserveRoles(ctx context.Context) (Roles, error) + func (c *Client) ObserveScopeUsers(ctx context.Context, scope int64) (ScopeUsers, error) + func (c *Client) ObserveSettings(ctx context.Context) (Settings, error) + func (c *Client) ObserveUserRoles(ctx context.Context, login string) (Roles, error) + func (c *Client) Ping(ctx context.Context) error + func (c *Client) Register(ctx context.Context, form RegisterUserForm) (User, error) + func (c *Client) SubmitContestSolution(ctx context.Context, contest int64, problem string, form SubmitSolutionForm) (ContestSolution, error) + func (c *Client) UpdateCompiler(ctx context.Context, id int64, form UpdateCompilerForm) (Compiler, error) + func (c *Client) UpdateProblem(ctx context.Context, id int64, form UpdateProblemForm) (Problem, error) + func (c *Client) UpdateSetting(ctx context.Context, id int64, form UpdateSettingForm) (Setting, error) + type ClientOption func(*Client) + func WithSessionCookie(value string) ClientOption + func WithTimeout(timeout time.Duration) ClientOption + func WithTransport(transport *http.Transport) ClientOption + type Compiler struct + Config JSON + ID int64 + Name string + type Compilers struct + Compilers []Compiler + type Contest struct + BeginTime NInt64 + Duration int + EnableObserving bool + EnableRegistration bool + EnableUpsolving bool + FreezeBeginDuration int + FreezeEndTime NInt64 + ID int64 + Permissions []string + StandingsKind models.StandingsKind + State *ContestState + Title string + type ContestMessage struct + Description string + ID int64 + Kind string + ParentID int64 + Participant *ContestParticipant + Title string + type ContestMessages struct + Messages []ContestMessage + type ContestParticipant struct + ContestID int64 + ID int64 + Kind models.ParticipantKind + Scope *Scope + ScopeUser *ScopeUser + User *User + type ContestParticipants struct + Participants []ContestParticipant + type ContestProblem struct + Code string + ContestID int64 + ID int64 + Locales []string + Points *int + Problem Problem + Solved *bool + type ContestProblems struct + Problems []ContestProblem + type ContestSolution struct + ContestID int64 + ID int64 + Participant *ContestParticipant + Problem *ContestProblem + Solution Solution + type ContestSolutions struct + Solutions []ContestSolution + type ContestStandings struct + Columns []ContestStandingsColumn + Frozen bool + Kind string + Rows []ContestStandingsRow + type ContestStandingsCell struct + Attempt int + Column int + Points float64 + Time *int64 + Verdict string + type ContestStandingsColumn struct + AcceptedSolutions int + Code string + Points *int + TotalSolutions int + type ContestStandingsRow struct + Cells []ContestStandingsCell + Participant ContestParticipant + Penalty *int64 + Place int + Score float64 + type ContestState struct + Participant *ContestParticipant + Stage string + type Contests struct + Contests []Contest + type CreateCompilerForm struct + func (f *CreateCompilerForm) Update(c echo.Context, compiler *models.Compiler) error + type CreateContestMessageForm struct + Description string + ParentID *int64 + Title string + func (f *CreateContestMessageForm) Update(c echo.Context, o *models.ContestMessage, messages models.ContestMessageStore) error + type CreateContestParticipantForm struct + Kind models.ParticipantKind + ScopeID *int64 + ScopeUserID *int64 + UserID *int64 + UserLogin *string + func (f CreateContestParticipantForm) Update(c echo.Context, participant *models.ContestParticipant, core *core.Core) *errorResponse + type CreateProblemForm struct + func (f *CreateProblemForm) Update(c echo.Context, problem *models.Problem) error + type CreateSettingForm struct + func (f *CreateSettingForm) Update(c echo.Context, o *models.Setting) error + type FileReader = managers.FileReader + type JSON struct + func (v *JSON) UnmarshalParam(data string) error + type Locale struct + Localizations []Localization + Name string + type Localization struct + Key string + Text string + type NInt64 = models.NInt64 + type NString = models.NString + type ObserveContestStandingsForm struct + IgnoreFreeze bool + OnlyOfficial bool + type Problem struct + Config *models.ProblemConfig + ID int64 + LastTask *ProblemTask + Permissions []string + Statement *ProblemStatement + Title string + type ProblemStatement = models.ProblemStatementConfig + type ProblemTask struct + Error string + Status string + type Problems struct + Problems []Problem + type RebuildProblemForm struct + Compile bool + type RegisterUserForm struct + Email string + FirstName string + LastName string + Login string + MiddleName string + Password string + func (f RegisterUserForm) Update(c echo.Context, user *models.User, store *models.UserStore) error + type Role struct + BuiltIn bool + ID int64 + Name string + type Roles struct + Roles []Role + type Scope struct + ID int64 + Title string + type ScopeUser struct + ID int64 + Login string + Password string + Title string + type ScopeUsers struct + Users []ScopeUser + type Scopes struct + Scopes []Scope + type Session struct + CreateTime int64 + ExpireTime int64 + ID int64 + type Sessions struct + Sessions []Session + type Setting struct + ID int64 + Key string + Value string + type Settings struct + Settings []Setting + type Solution struct + Compiler *Compiler + Content string + CreateTime int64 + ID int64 + Problem *Problem + Report *SolutionReport + ScopeUser *ScopeUser + User *User + type SolutionReport struct + CompileLog string + Points *float64 + TestNumber int + Tests []TestReport + UsedMemory int64 + UsedTime int64 + Verdict string + type Solutions struct + NextBeginID int64 + Solutions []Solution + type Status struct + Locale string + Permissions []string + ScopeUser *ScopeUser + Session *Session + User *User + type SubmitContestQuestionForm struct + Description string + Title string + func (f SubmitContestQuestionForm) Update(c echo.Context, o *models.ContestMessage) error + type SubmitSolutionForm struct + CompilerID int64 + Content *string + ContentFile *FileReader + func (f *SubmitSolutionForm) Parse(c echo.Context) error + type TestReport struct + CheckLog string + Input string + Output string + UsedMemory int64 + UsedTime int64 + Verdict models.Verdict + type UpdateCompilerForm struct + Config JSON + ImageFile *FileReader + Name *string + func (f *UpdateCompilerForm) Close() error + func (f *UpdateCompilerForm) Parse(c echo.Context) error + func (f *UpdateCompilerForm) Update(c echo.Context, compiler *models.Compiler) error + type UpdateProblemForm struct + OwnerID *int64 + PackageFile *FileReader + Title *string + func (f *UpdateProblemForm) Close() error + func (f *UpdateProblemForm) Parse(c echo.Context) error + func (f *UpdateProblemForm) Update(c echo.Context, problem *models.Problem) error + type UpdateSettingForm struct + Key *string + Value *string + func (f *UpdateSettingForm) Update(c echo.Context, o *models.Setting) error + type User struct + Email string + FirstName string + ID int64 + LastName string + Login string + MiddleName string + Status string + UnconfirmedEmail string + type View struct + func NewView(core *core.Core) *View + func (v *View) ObserveCompilers(c echo.Context) error + func (v *View) Register(g *echo.Group) + func (v *View) RegisterSocket(g *echo.Group) + func (v *View) StartDaemons() v0.2.0-beta.2 Jan 4, 2024 v0.2.0-beta.1 Nov 23, 2023 v0.2.0-beta Nov 13, 2023 v0.2.0-alpha.7 Nov 12, 2023