Documentation
¶
Index ¶
- func GetDraftPath(draftID int) string
- func GetDraftSubmitTrxPath(trxID string) string
- func GetDraftresultPath(resultID string) string
- func GetEntryPath(entryID int) string
- func GetEntrySubmitTrxPath(trxID string) string
- func GetResultPath(resultID string) string
- func ShowDraftPath() string
- func ShowDraftSubmitTrxPath() string
- func ShowDraftresultPath() string
- func ShowEntryPath() string
- func ShowEntrySubmitTrxPath() string
- func ShowResultPath() string
- func SubmitEntryActionsPath() string
- func SubmitEntryDraftActionsPath() string
- func SummarizeScoreActionsPath() string
- type AbstractEntry
- type AbstractEntrySubmitTrx
- type Client
- func (c *Client) DecodeComJossemargtSaoDraft(resp *http.Response) (*ComJossemargtSaoDraft, error)
- func (c *Client) DecodeComJossemargtSaoDraftCollection(resp *http.Response) (ComJossemargtSaoDraftCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftFull(resp *http.Response) (*ComJossemargtSaoDraftFull, error)
- func (c *Client) DecodeComJossemargtSaoDraftFullCollection(resp *http.Response) (ComJossemargtSaoDraftFullCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftLink(resp *http.Response) (*ComJossemargtSaoDraftLink, error)
- func (c *Client) DecodeComJossemargtSaoDraftLinkCollection(resp *http.Response) (ComJossemargtSaoDraftLinkCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftResult(resp *http.Response) (*ComJossemargtSaoDraftResult, error)
- func (c *Client) DecodeComJossemargtSaoDraftResultCollection(resp *http.Response) (ComJossemargtSaoDraftResultCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftResultFull(resp *http.Response) (*ComJossemargtSaoDraftResultFull, error)
- func (c *Client) DecodeComJossemargtSaoDraftResultFullCollection(resp *http.Response) (ComJossemargtSaoDraftResultFullCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftResultLink(resp *http.Response) (*ComJossemargtSaoDraftResultLink, error)
- func (c *Client) DecodeComJossemargtSaoDraftResultLinkCollection(resp *http.Response) (ComJossemargtSaoDraftResultLinkCollection, error)
- func (c *Client) DecodeComJossemargtSaoDraftSubmitTransaction(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransaction, error)
- func (c *Client) DecodeComJossemargtSaoDraftSubmitTransactionFull(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransactionFull, error)
- func (c *Client) DecodeComJossemargtSaoDraftSubmitTransactionLink(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransactionLink, error)
- func (c *Client) DecodeComJossemargtSaoEntry(resp *http.Response) (*ComJossemargtSaoEntry, error)
- func (c *Client) DecodeComJossemargtSaoEntryCollection(resp *http.Response) (ComJossemargtSaoEntryCollection, error)
- func (c *Client) DecodeComJossemargtSaoEntryFull(resp *http.Response) (*ComJossemargtSaoEntryFull, error)
- func (c *Client) DecodeComJossemargtSaoEntryFullCollection(resp *http.Response) (ComJossemargtSaoEntryFullCollection, error)
- func (c *Client) DecodeComJossemargtSaoEntryLink(resp *http.Response) (*ComJossemargtSaoEntryLink, error)
- func (c *Client) DecodeComJossemargtSaoEntryLinkCollection(resp *http.Response) (ComJossemargtSaoEntryLinkCollection, error)
- func (c *Client) DecodeComJossemargtSaoEntrySubmitTransaction(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransaction, error)
- func (c *Client) DecodeComJossemargtSaoEntrySubmitTransactionFull(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransactionFull, error)
- func (c *Client) DecodeComJossemargtSaoEntrySubmitTransactionLink(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransactionLink, error)
- func (c *Client) DecodeComJossemargtSaoResult(resp *http.Response) (*ComJossemargtSaoResult, error)
- func (c *Client) DecodeComJossemargtSaoResultCollection(resp *http.Response) (ComJossemargtSaoResultCollection, error)
- func (c *Client) DecodeComJossemargtSaoResultFull(resp *http.Response) (*ComJossemargtSaoResultFull, error)
- func (c *Client) DecodeComJossemargtSaoResultFullCollection(resp *http.Response) (ComJossemargtSaoResultFullCollection, error)
- func (c *Client) DecodeComJossemargtSaoResultLink(resp *http.Response) (*ComJossemargtSaoResultLink, error)
- func (c *Client) DecodeComJossemargtSaoResultLinkCollection(resp *http.Response) (ComJossemargtSaoResultLinkCollection, error)
- func (c *Client) DecodeComJossemargtSaoScoreSum(resp *http.Response) (*ComJossemargtSaoScoreSum, error)
- func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)
- func (c *Client) GetDraft(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetDraftSubmitTrx(ctx context.Context, path string, trxD *int) (*http.Response, error)
- func (c *Client) GetDraftresult(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetEntry(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetEntrySubmitTrx(ctx context.Context, path string, trxD *int) (*http.Response, error)
- func (c *Client) GetResult(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) NewGetDraftRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetDraftSubmitTrxRequest(ctx context.Context, path string, trxD *int) (*http.Request, error)
- func (c *Client) NewGetDraftresultRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetEntryRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetEntrySubmitTrxRequest(ctx context.Context, path string, trxD *int) (*http.Request, error)
- func (c *Client) NewGetResultRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowDraftRequest(ctx context.Context, path string, contest *int, contestSlug *string, page *int, ...) (*http.Request, error)
- func (c *Client) NewShowDraftSubmitTrxRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowDraftresultRequest(ctx context.Context, path string, contest *int, contestSlug *string, ...) (*http.Request, error)
- func (c *Client) NewShowEntryRequest(ctx context.Context, path string, contest *int, contestSlug *string, page *int, ...) (*http.Request, error)
- func (c *Client) NewShowEntrySubmitTrxRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowResultRequest(ctx context.Context, path string, contest *int, contestSlug *string, ...) (*http.Request, error)
- func (c *Client) NewSubmitEntryActionsRequest(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Request, error)
- func (c *Client) NewSubmitEntryDraftActionsRequest(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Request, error)
- func (c *Client) NewSummarizeScoreActionsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) ShowDraft(ctx context.Context, path string, contest *int, contestSlug *string, page *int, ...) (*http.Response, error)
- func (c *Client) ShowDraftSubmitTrx(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowDraftresult(ctx context.Context, path string, contest *int, contestSlug *string, ...) (*http.Response, error)
- func (c *Client) ShowEntry(ctx context.Context, path string, contest *int, contestSlug *string, page *int, ...) (*http.Response, error)
- func (c *Client) ShowEntrySubmitTrx(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowResult(ctx context.Context, path string, contest *int, contestSlug *string, ...) (*http.Response, error)
- func (c *Client) SubmitEntryActions(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Response, error)
- func (c *Client) SubmitEntryDraftActions(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Response, error)
- func (c *Client) SummarizeScoreActions(ctx context.Context, path string) (*http.Response, error)
- type ComJossemargtSaoDraft
- type ComJossemargtSaoDraftCollection
- type ComJossemargtSaoDraftFull
- type ComJossemargtSaoDraftFullCollection
- type ComJossemargtSaoDraftLink
- type ComJossemargtSaoDraftLinkCollection
- type ComJossemargtSaoDraftLinks
- type ComJossemargtSaoDraftLinksArray
- type ComJossemargtSaoDraftResult
- type ComJossemargtSaoDraftResultCollection
- type ComJossemargtSaoDraftResultFull
- type ComJossemargtSaoDraftResultFullCollection
- type ComJossemargtSaoDraftResultLink
- type ComJossemargtSaoDraftResultLinkCollection
- type ComJossemargtSaoDraftSubmitTransaction
- type ComJossemargtSaoDraftSubmitTransactionFull
- type ComJossemargtSaoDraftSubmitTransactionLink
- type ComJossemargtSaoDraftSubmitTransactionLinks
- type ComJossemargtSaoEntry
- type ComJossemargtSaoEntryCollection
- type ComJossemargtSaoEntryFull
- type ComJossemargtSaoEntryFullCollection
- type ComJossemargtSaoEntryLink
- type ComJossemargtSaoEntryLinkCollection
- type ComJossemargtSaoEntryLinks
- type ComJossemargtSaoEntryLinksArray
- type ComJossemargtSaoEntrySubmitTransaction
- type ComJossemargtSaoEntrySubmitTransactionFull
- type ComJossemargtSaoEntrySubmitTransactionLink
- type ComJossemargtSaoEntrySubmitTransactionLinks
- type ComJossemargtSaoResult
- type ComJossemargtSaoResultCollection
- type ComJossemargtSaoResultFull
- type ComJossemargtSaoResultFullCollection
- type ComJossemargtSaoResultLink
- type ComJossemargtSaoResultLinkCollection
- type ComJossemargtSaoScoreSum
- type CompilationResult
- type EntryPayload
- type EntrySource
- type EvaluationResult
- type ExecutionResult
- type ScoreResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDraftPath ¶
GetDraftPath computes a request path to the get action of draft.
func GetDraftSubmitTrxPath ¶
GetDraftSubmitTrxPath computes a request path to the get action of DraftSubmitTrx.
func GetDraftresultPath ¶
GetDraftresultPath computes a request path to the get action of draftresult.
func GetEntryPath ¶
GetEntryPath computes a request path to the get action of entry.
func GetEntrySubmitTrxPath ¶
GetEntrySubmitTrxPath computes a request path to the get action of EntrySubmitTrx.
func GetResultPath ¶
GetResultPath computes a request path to the get action of result.
func ShowDraftPath ¶
func ShowDraftPath() string
ShowDraftPath computes a request path to the show action of draft.
func ShowDraftSubmitTrxPath ¶
func ShowDraftSubmitTrxPath() string
ShowDraftSubmitTrxPath computes a request path to the show action of DraftSubmitTrx.
func ShowDraftresultPath ¶
func ShowDraftresultPath() string
ShowDraftresultPath computes a request path to the show action of draftresult.
func ShowEntryPath ¶
func ShowEntryPath() string
ShowEntryPath computes a request path to the show action of entry.
func ShowEntrySubmitTrxPath ¶
func ShowEntrySubmitTrxPath() string
ShowEntrySubmitTrxPath computes a request path to the show action of EntrySubmitTrx.
func ShowResultPath ¶
func ShowResultPath() string
ShowResultPath computes a request path to the show action of result.
func SubmitEntryActionsPath ¶
func SubmitEntryActionsPath() string
SubmitEntryActionsPath computes a request path to the submitEntry action of actions.
func SubmitEntryDraftActionsPath ¶
func SubmitEntryDraftActionsPath() string
SubmitEntryDraftActionsPath computes a request path to the submitEntryDraft action of actions.
func SummarizeScoreActionsPath ¶
func SummarizeScoreActionsPath() string
SummarizeScoreActionsPath computes a request path to the summarizeScore action of actions.
Types ¶
type AbstractEntry ¶
type AbstractEntry struct {
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// Identifies the programming language used in the entry's content. The special keyword "none" should be used
// instead when submitting plain text, which are used for user test inputs and diff based grading
Language string `form:"language" json:"language" yaml:"language" xml:"language"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
// Identifies when an Entry has been processed using a CMS Entry Token. The default value is true, in other words
// any submitted Entry will use a CMS Token
Token bool `form:"token" json:"token" yaml:"token" xml:"token"`
}
Abstracts the common attributes from EntryPayload and EntryFormPayload
func (*AbstractEntry) Validate ¶
func (ut *AbstractEntry) Validate() (err error)
Validate validates the AbstractEntry type instance.
type AbstractEntrySubmitTrx ¶
type AbstractEntrySubmitTrx struct {
// Transaction creation timestamp
CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty" yaml:"createdAt,omitempty" xml:"createdAt,omitempty"`
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
// Transaction last update timestamp
UpdatedAt *time.Time `form:"updatedAt,omitempty" json:"updatedAt,omitempty" yaml:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
}
Abstracts the common attributes from SubmitEntry and SubmitDraft transactional resources
func (*AbstractEntrySubmitTrx) Validate ¶
func (ut *AbstractEntrySubmitTrx) Validate() (err error)
Validate validates the AbstractEntrySubmitTrx type instance.
type Client ¶
type Client struct {
*goaclient.Client
Encoder *goa.HTTPEncoder
Decoder *goa.HTTPDecoder
}
Client is the SAO service client.
func (*Client) DecodeComJossemargtSaoDraft ¶
func (c *Client) DecodeComJossemargtSaoDraft(resp *http.Response) (*ComJossemargtSaoDraft, error)
DecodeComJossemargtSaoDraft decodes the ComJossemargtSaoDraft instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftCollection(resp *http.Response) (ComJossemargtSaoDraftCollection, error)
DecodeComJossemargtSaoDraftCollection decodes the ComJossemargtSaoDraftCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftFull ¶
func (c *Client) DecodeComJossemargtSaoDraftFull(resp *http.Response) (*ComJossemargtSaoDraftFull, error)
DecodeComJossemargtSaoDraftFull decodes the ComJossemargtSaoDraftFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftFullCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftFullCollection(resp *http.Response) (ComJossemargtSaoDraftFullCollection, error)
DecodeComJossemargtSaoDraftFullCollection decodes the ComJossemargtSaoDraftFullCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftLink ¶
func (c *Client) DecodeComJossemargtSaoDraftLink(resp *http.Response) (*ComJossemargtSaoDraftLink, error)
DecodeComJossemargtSaoDraftLink decodes the ComJossemargtSaoDraftLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftLinkCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftLinkCollection(resp *http.Response) (ComJossemargtSaoDraftLinkCollection, error)
DecodeComJossemargtSaoDraftLinkCollection decodes the ComJossemargtSaoDraftLinkCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResult ¶
func (c *Client) DecodeComJossemargtSaoDraftResult(resp *http.Response) (*ComJossemargtSaoDraftResult, error)
DecodeComJossemargtSaoDraftResult decodes the ComJossemargtSaoDraftResult instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResultCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftResultCollection(resp *http.Response) (ComJossemargtSaoDraftResultCollection, error)
DecodeComJossemargtSaoDraftResultCollection decodes the ComJossemargtSaoDraftResultCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResultFull ¶
func (c *Client) DecodeComJossemargtSaoDraftResultFull(resp *http.Response) (*ComJossemargtSaoDraftResultFull, error)
DecodeComJossemargtSaoDraftResultFull decodes the ComJossemargtSaoDraftResultFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResultFullCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftResultFullCollection(resp *http.Response) (ComJossemargtSaoDraftResultFullCollection, error)
DecodeComJossemargtSaoDraftResultFullCollection decodes the ComJossemargtSaoDraftResultFullCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResultLink ¶
func (c *Client) DecodeComJossemargtSaoDraftResultLink(resp *http.Response) (*ComJossemargtSaoDraftResultLink, error)
DecodeComJossemargtSaoDraftResultLink decodes the ComJossemargtSaoDraftResultLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftResultLinkCollection ¶
func (c *Client) DecodeComJossemargtSaoDraftResultLinkCollection(resp *http.Response) (ComJossemargtSaoDraftResultLinkCollection, error)
DecodeComJossemargtSaoDraftResultLinkCollection decodes the ComJossemargtSaoDraftResultLinkCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftSubmitTransaction ¶
func (c *Client) DecodeComJossemargtSaoDraftSubmitTransaction(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransaction, error)
DecodeComJossemargtSaoDraftSubmitTransaction decodes the ComJossemargtSaoDraftSubmitTransaction instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftSubmitTransactionFull ¶
func (c *Client) DecodeComJossemargtSaoDraftSubmitTransactionFull(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransactionFull, error)
DecodeComJossemargtSaoDraftSubmitTransactionFull decodes the ComJossemargtSaoDraftSubmitTransactionFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoDraftSubmitTransactionLink ¶
func (c *Client) DecodeComJossemargtSaoDraftSubmitTransactionLink(resp *http.Response) (*ComJossemargtSaoDraftSubmitTransactionLink, error)
DecodeComJossemargtSaoDraftSubmitTransactionLink decodes the ComJossemargtSaoDraftSubmitTransactionLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntry ¶
func (c *Client) DecodeComJossemargtSaoEntry(resp *http.Response) (*ComJossemargtSaoEntry, error)
DecodeComJossemargtSaoEntry decodes the ComJossemargtSaoEntry instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntryCollection ¶
func (c *Client) DecodeComJossemargtSaoEntryCollection(resp *http.Response) (ComJossemargtSaoEntryCollection, error)
DecodeComJossemargtSaoEntryCollection decodes the ComJossemargtSaoEntryCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntryFull ¶
func (c *Client) DecodeComJossemargtSaoEntryFull(resp *http.Response) (*ComJossemargtSaoEntryFull, error)
DecodeComJossemargtSaoEntryFull decodes the ComJossemargtSaoEntryFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntryFullCollection ¶
func (c *Client) DecodeComJossemargtSaoEntryFullCollection(resp *http.Response) (ComJossemargtSaoEntryFullCollection, error)
DecodeComJossemargtSaoEntryFullCollection decodes the ComJossemargtSaoEntryFullCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntryLink ¶
func (c *Client) DecodeComJossemargtSaoEntryLink(resp *http.Response) (*ComJossemargtSaoEntryLink, error)
DecodeComJossemargtSaoEntryLink decodes the ComJossemargtSaoEntryLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntryLinkCollection ¶
func (c *Client) DecodeComJossemargtSaoEntryLinkCollection(resp *http.Response) (ComJossemargtSaoEntryLinkCollection, error)
DecodeComJossemargtSaoEntryLinkCollection decodes the ComJossemargtSaoEntryLinkCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntrySubmitTransaction ¶
func (c *Client) DecodeComJossemargtSaoEntrySubmitTransaction(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransaction, error)
DecodeComJossemargtSaoEntrySubmitTransaction decodes the ComJossemargtSaoEntrySubmitTransaction instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntrySubmitTransactionFull ¶
func (c *Client) DecodeComJossemargtSaoEntrySubmitTransactionFull(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransactionFull, error)
DecodeComJossemargtSaoEntrySubmitTransactionFull decodes the ComJossemargtSaoEntrySubmitTransactionFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoEntrySubmitTransactionLink ¶
func (c *Client) DecodeComJossemargtSaoEntrySubmitTransactionLink(resp *http.Response) (*ComJossemargtSaoEntrySubmitTransactionLink, error)
DecodeComJossemargtSaoEntrySubmitTransactionLink decodes the ComJossemargtSaoEntrySubmitTransactionLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResult ¶
func (c *Client) DecodeComJossemargtSaoResult(resp *http.Response) (*ComJossemargtSaoResult, error)
DecodeComJossemargtSaoResult decodes the ComJossemargtSaoResult instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResultCollection ¶
func (c *Client) DecodeComJossemargtSaoResultCollection(resp *http.Response) (ComJossemargtSaoResultCollection, error)
DecodeComJossemargtSaoResultCollection decodes the ComJossemargtSaoResultCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResultFull ¶
func (c *Client) DecodeComJossemargtSaoResultFull(resp *http.Response) (*ComJossemargtSaoResultFull, error)
DecodeComJossemargtSaoResultFull decodes the ComJossemargtSaoResultFull instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResultFullCollection ¶
func (c *Client) DecodeComJossemargtSaoResultFullCollection(resp *http.Response) (ComJossemargtSaoResultFullCollection, error)
DecodeComJossemargtSaoResultFullCollection decodes the ComJossemargtSaoResultFullCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResultLink ¶
func (c *Client) DecodeComJossemargtSaoResultLink(resp *http.Response) (*ComJossemargtSaoResultLink, error)
DecodeComJossemargtSaoResultLink decodes the ComJossemargtSaoResultLink instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoResultLinkCollection ¶
func (c *Client) DecodeComJossemargtSaoResultLinkCollection(resp *http.Response) (ComJossemargtSaoResultLinkCollection, error)
DecodeComJossemargtSaoResultLinkCollection decodes the ComJossemargtSaoResultLinkCollection instance encoded in resp body.
func (*Client) DecodeComJossemargtSaoScoreSum ¶
func (c *Client) DecodeComJossemargtSaoScoreSum(resp *http.Response) (*ComJossemargtSaoScoreSum, error)
DecodeComJossemargtSaoScoreSum decodes the ComJossemargtSaoScoreSum instance encoded in resp body.
func (*Client) DecodeErrorResponse ¶
DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.
func (*Client) GetDraft ¶
Get the complete Entry Draft metadata (excluding the associated sources) for the given ID
func (*Client) GetDraftSubmitTrx ¶
func (c *Client) GetDraftSubmitTrx(ctx context.Context, path string, trxD *int) (*http.Response, error)
Get submitted draft transaction metadata for the given ID
func (*Client) GetDraftresult ¶
Get complete Entry Draft Result data for the given entry and testcase ID.
func (*Client) GetEntry ¶
Get the complete entry metadata (excluding the associated sources) for the given ID
func (*Client) GetEntrySubmitTrx ¶
func (c *Client) GetEntrySubmitTrx(ctx context.Context, path string, trxD *int) (*http.Response, error)
Get submitted entry transaction metadata for the given ID
func (*Client) NewGetDraftRequest ¶
NewGetDraftRequest create the request corresponding to the get action endpoint of the draft resource.
func (*Client) NewGetDraftSubmitTrxRequest ¶
func (c *Client) NewGetDraftSubmitTrxRequest(ctx context.Context, path string, trxD *int) (*http.Request, error)
NewGetDraftSubmitTrxRequest create the request corresponding to the get action endpoint of the DraftSubmitTrx resource.
func (*Client) NewGetDraftresultRequest ¶
NewGetDraftresultRequest create the request corresponding to the get action endpoint of the draftresult resource.
func (*Client) NewGetEntryRequest ¶
NewGetEntryRequest create the request corresponding to the get action endpoint of the entry resource.
func (*Client) NewGetEntrySubmitTrxRequest ¶
func (c *Client) NewGetEntrySubmitTrxRequest(ctx context.Context, path string, trxD *int) (*http.Request, error)
NewGetEntrySubmitTrxRequest create the request corresponding to the get action endpoint of the EntrySubmitTrx resource.
func (*Client) NewGetResultRequest ¶
NewGetResultRequest create the request corresponding to the get action endpoint of the result resource.
func (*Client) NewShowDraftRequest ¶
func (c *Client) NewShowDraftRequest(ctx context.Context, path string, contest *int, contestSlug *string, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Request, error)
NewShowDraftRequest create the request corresponding to the show action endpoint of the draft resource.
func (*Client) NewShowDraftSubmitTrxRequest ¶
func (c *Client) NewShowDraftSubmitTrxRequest(ctx context.Context, path string) (*http.Request, error)
NewShowDraftSubmitTrxRequest create the request corresponding to the show action endpoint of the DraftSubmitTrx resource.
func (*Client) NewShowDraftresultRequest ¶
func (c *Client) NewShowDraftresultRequest(ctx context.Context, path string, contest *int, contestSlug *string, entry *int, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Request, error)
NewShowDraftresultRequest create the request corresponding to the show action endpoint of the draftresult resource.
func (*Client) NewShowEntryRequest ¶
func (c *Client) NewShowEntryRequest(ctx context.Context, path string, contest *int, contestSlug *string, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Request, error)
NewShowEntryRequest create the request corresponding to the show action endpoint of the entry resource.
func (*Client) NewShowEntrySubmitTrxRequest ¶
func (c *Client) NewShowEntrySubmitTrxRequest(ctx context.Context, path string) (*http.Request, error)
NewShowEntrySubmitTrxRequest create the request corresponding to the show action endpoint of the EntrySubmitTrx resource.
func (*Client) NewShowResultRequest ¶
func (c *Client) NewShowResultRequest(ctx context.Context, path string, contest *int, contestSlug *string, entry *int, max *bool, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int, view *string) (*http.Request, error)
NewShowResultRequest create the request corresponding to the show action endpoint of the result resource.
func (*Client) NewSubmitEntryActionsRequest ¶
func (c *Client) NewSubmitEntryActionsRequest(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Request, error)
NewSubmitEntryActionsRequest create the request corresponding to the submitEntry action endpoint of the actions resource.
func (*Client) NewSubmitEntryDraftActionsRequest ¶
func (c *Client) NewSubmitEntryDraftActionsRequest(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Request, error)
NewSubmitEntryDraftActionsRequest create the request corresponding to the submitEntryDraft action endpoint of the actions resource.
func (*Client) NewSummarizeScoreActionsRequest ¶
func (c *Client) NewSummarizeScoreActionsRequest(ctx context.Context, path string) (*http.Request, error)
NewSummarizeScoreActionsRequest create the request corresponding to the summarizeScore action endpoint of the actions resource.
func (*Client) ShowDraft ¶
func (c *Client) ShowDraft(ctx context.Context, path string, contest *int, contestSlug *string, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Response, error)
List the entry drafts without their sources.
func (*Client) ShowDraftSubmitTrx ¶
ShowDraftSubmitTrx makes a request to the show action endpoint of the DraftSubmitTrx resource
func (*Client) ShowDraftresult ¶
func (c *Client) ShowDraftresult(ctx context.Context, path string, contest *int, contestSlug *string, entry *int, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Response, error)
List the Results delimited and grouped by contest, task, entry or user identifier
func (*Client) ShowEntry ¶
func (c *Client) ShowEntry(ctx context.Context, path string, contest *int, contestSlug *string, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int) (*http.Response, error)
List the ranked entries without their sources.
func (*Client) ShowEntrySubmitTrx ¶
ShowEntrySubmitTrx makes a request to the show action endpoint of the EntrySubmitTrx resource
func (*Client) ShowResult ¶
func (c *Client) ShowResult(ctx context.Context, path string, contest *int, contestSlug *string, entry *int, max *bool, page *int, pageSize *int, sort *string, task *int, taskSlug *string, user *int, view *string) (*http.Response, error)
List the Results delimited and grouped by contest, task, entry or user identifier
func (*Client) SubmitEntryActions ¶
func (c *Client) SubmitEntryActions(ctx context.Context, path string, payload *EntryPayload, contentType string) (*http.Response, error)
Orchestrates the resource creation related to a entry submit process (Entry, Token, Result and Score).
type ComJossemargtSaoDraft ¶
type ComJossemargtSaoDraft struct {
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
}
Any source code or input to be compiled and executed against the user test case (default view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; view=default
func (*ComJossemargtSaoDraft) Validate ¶
func (mt *ComJossemargtSaoDraft) Validate() (err error)
Validate validates the ComJossemargtSaoDraft media type instance.
type ComJossemargtSaoDraftCollection ¶
type ComJossemargtSaoDraftCollection []*ComJossemargtSaoDraft
ComJossemargtSaoDraftCollection is the media type for an array of ComJossemargtSaoDraft (default view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; type=collection; view=default
func (ComJossemargtSaoDraftCollection) Validate ¶
func (mt ComJossemargtSaoDraftCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftCollection media type instance.
type ComJossemargtSaoDraftFull ¶
type ComJossemargtSaoDraftFull struct {
// Contest ID where this Entry has been submitted
ContestID int `form:"contestID" json:"contestID" yaml:"contestID" xml:"contestID"`
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
// Identifies the programming language used in the entry's content. The special keyword "none" should be used
// instead when submitting plain text, which are used for user test inputs and diff based grading
Language string `form:"language" json:"language" yaml:"language" xml:"language"`
// Links to related resources
Links *ComJossemargtSaoDraftLinks `form:"links,omitempty" json:"links,omitempty" yaml:"links,omitempty" xml:"links,omitempty"`
// Task ID where this Entry has been submitted
TaskID int `form:"taskID" json:"taskID" yaml:"taskID" xml:"taskID"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
// User ID of the Entry's owner
UserID int `form:"userID" json:"userID" yaml:"userID" xml:"userID"`
}
Any source code or input to be compiled and executed against the user test case (full view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; view=full
func (*ComJossemargtSaoDraftFull) Validate ¶
func (mt *ComJossemargtSaoDraftFull) Validate() (err error)
Validate validates the ComJossemargtSaoDraftFull media type instance.
type ComJossemargtSaoDraftFullCollection ¶
type ComJossemargtSaoDraftFullCollection []*ComJossemargtSaoDraftFull
ComJossemargtSaoDraftCollection is the media type for an array of ComJossemargtSaoDraft (full view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; type=collection; view=full
func (ComJossemargtSaoDraftFullCollection) Validate ¶
func (mt ComJossemargtSaoDraftFullCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftFullCollection media type instance.
type ComJossemargtSaoDraftLink ¶
type ComJossemargtSaoDraftLink struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
}
Any source code or input to be compiled and executed against the user test case (link view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; view=link
func (*ComJossemargtSaoDraftLink) Validate ¶
func (mt *ComJossemargtSaoDraftLink) Validate() (err error)
Validate validates the ComJossemargtSaoDraftLink media type instance.
type ComJossemargtSaoDraftLinkCollection ¶
type ComJossemargtSaoDraftLinkCollection []*ComJossemargtSaoDraftLink
ComJossemargtSaoDraftCollection is the media type for an array of ComJossemargtSaoDraft (link view)
Identifier: application/vnd.com.jossemargt.sao.draft+json; type=collection; view=link
func (ComJossemargtSaoDraftLinkCollection) Validate ¶
func (mt ComJossemargtSaoDraftLinkCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftLinkCollection media type instance.
type ComJossemargtSaoDraftLinks ¶
type ComJossemargtSaoDraftLinks struct {
Result *ComJossemargtSaoDraftResultLink `form:"result,omitempty" json:"result,omitempty" yaml:"result,omitempty" xml:"result,omitempty"`
}
ComJossemargtSaoDraftLinks contains links to related resources of ComJossemargtSaoDraft.
func (*ComJossemargtSaoDraftLinks) Validate ¶
func (ut *ComJossemargtSaoDraftLinks) Validate() (err error)
Validate validates the ComJossemargtSaoDraftLinks type instance.
type ComJossemargtSaoDraftLinksArray ¶
type ComJossemargtSaoDraftLinksArray []*ComJossemargtSaoDraftLinks
ComJossemargtSaoDraftLinksArray contains links to related resources of ComJossemargtSaoDraftCollection.
func (ComJossemargtSaoDraftLinksArray) Validate ¶
func (ut ComJossemargtSaoDraftLinksArray) Validate() (err error)
Validate validates the ComJossemargtSaoDraftLinksArray type instance.
type ComJossemargtSaoDraftResult ¶
type ComJossemargtSaoDraftResult struct {
// Entry execution result
Execution *ExecutionResult `form:"execution" json:"execution" yaml:"execution" xml:"execution"`
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
The representation of the result of an entry draft compile, execution and evaluation process (default view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; view=default
func (*ComJossemargtSaoDraftResult) Validate ¶
func (mt *ComJossemargtSaoDraftResult) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResult media type instance.
type ComJossemargtSaoDraftResultCollection ¶
type ComJossemargtSaoDraftResultCollection []*ComJossemargtSaoDraftResult
ComJossemargtSaoDraft-ResultCollection is the media type for an array of ComJossemargtSaoDraft-Result (default view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; type=collection; view=default
func (ComJossemargtSaoDraftResultCollection) Validate ¶
func (mt ComJossemargtSaoDraftResultCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResultCollection media type instance.
type ComJossemargtSaoDraftResultFull ¶
type ComJossemargtSaoDraftResultFull struct {
// Entry compilation result
Compilation *CompilationResult `form:"compilation,omitempty" json:"compilation,omitempty" yaml:"compilation,omitempty" xml:"compilation,omitempty"`
// Entry evaluation result
Evaluation *EvaluationResult `form:"evaluation,omitempty" json:"evaluation,omitempty" yaml:"evaluation,omitempty" xml:"evaluation,omitempty"`
// Entry execution result
Execution *ExecutionResult `form:"execution" json:"execution" yaml:"execution" xml:"execution"`
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
The representation of the result of an entry draft compile, execution and evaluation process (full view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; view=full
func (*ComJossemargtSaoDraftResultFull) Validate ¶
func (mt *ComJossemargtSaoDraftResultFull) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResultFull media type instance.
type ComJossemargtSaoDraftResultFullCollection ¶
type ComJossemargtSaoDraftResultFullCollection []*ComJossemargtSaoDraftResultFull
ComJossemargtSaoDraft-ResultCollection is the media type for an array of ComJossemargtSaoDraft-Result (full view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; type=collection; view=full
func (ComJossemargtSaoDraftResultFullCollection) Validate ¶
func (mt ComJossemargtSaoDraftResultFullCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResultFullCollection media type instance.
type ComJossemargtSaoDraftResultLink ¶
type ComJossemargtSaoDraftResultLink struct {
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
The representation of the result of an entry draft compile, execution and evaluation process (link view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; view=link
func (*ComJossemargtSaoDraftResultLink) Validate ¶
func (mt *ComJossemargtSaoDraftResultLink) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResultLink media type instance.
type ComJossemargtSaoDraftResultLinkCollection ¶
type ComJossemargtSaoDraftResultLinkCollection []*ComJossemargtSaoDraftResultLink
ComJossemargtSaoDraft-ResultCollection is the media type for an array of ComJossemargtSaoDraft-Result (link view)
Identifier: application/vnd.com.jossemargt.sao.draft-result+json; type=collection; view=link
func (ComJossemargtSaoDraftResultLinkCollection) Validate ¶
func (mt ComJossemargtSaoDraftResultLinkCollection) Validate() (err error)
Validate validates the ComJossemargtSaoDraftResultLinkCollection media type instance.
type ComJossemargtSaoDraftSubmitTransaction ¶
type ComJossemargtSaoDraftSubmitTransaction struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitDraftTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
}
Represents the process of queueing, compilation and execution of an Entry Draft (default view)
Identifier: application/vnd.com.jossemargt.sao.draft-submit-transaction+json; view=default
func (*ComJossemargtSaoDraftSubmitTransaction) Validate ¶
func (mt *ComJossemargtSaoDraftSubmitTransaction) Validate() (err error)
Validate validates the ComJossemargtSaoDraftSubmitTransaction media type instance.
type ComJossemargtSaoDraftSubmitTransactionFull ¶
type ComJossemargtSaoDraftSubmitTransactionFull struct {
// Transaction creation timestamp
CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty" yaml:"createdAt,omitempty" xml:"createdAt,omitempty"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitDraftTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
// Links to related resources
Links *ComJossemargtSaoDraftSubmitTransactionLinks `form:"links,omitempty" json:"links,omitempty" yaml:"links,omitempty" xml:"links,omitempty"`
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
// Transaction last update timestamp
UpdatedAt *time.Time `form:"updatedAt,omitempty" json:"updatedAt,omitempty" yaml:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
}
Represents the process of queueing, compilation and execution of an Entry Draft (full view)
Identifier: application/vnd.com.jossemargt.sao.draft-submit-transaction+json; view=full
func (*ComJossemargtSaoDraftSubmitTransactionFull) Validate ¶
func (mt *ComJossemargtSaoDraftSubmitTransactionFull) Validate() (err error)
Validate validates the ComJossemargtSaoDraftSubmitTransactionFull media type instance.
type ComJossemargtSaoDraftSubmitTransactionLink ¶
type ComJossemargtSaoDraftSubmitTransactionLink struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitDraftTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
Represents the process of queueing, compilation and execution of an Entry Draft (link view)
Identifier: application/vnd.com.jossemargt.sao.draft-submit-transaction+json; view=link
func (*ComJossemargtSaoDraftSubmitTransactionLink) Validate ¶
func (mt *ComJossemargtSaoDraftSubmitTransactionLink) Validate() (err error)
Validate validates the ComJossemargtSaoDraftSubmitTransactionLink media type instance.
type ComJossemargtSaoDraftSubmitTransactionLinks ¶
type ComJossemargtSaoDraftSubmitTransactionLinks struct {
Draft *ComJossemargtSaoDraftLink `form:"draft,omitempty" json:"draft,omitempty" yaml:"draft,omitempty" xml:"draft,omitempty"`
}
ComJossemargtSaoDraft-Submit-TransactionLinks contains links to related resources of ComJossemargtSaoDraft-Submit-Transaction.
func (*ComJossemargtSaoDraftSubmitTransactionLinks) Validate ¶
func (ut *ComJossemargtSaoDraftSubmitTransactionLinks) Validate() (err error)
Validate validates the ComJossemargtSaoDraftSubmitTransactionLinks type instance.
type ComJossemargtSaoEntry ¶
type ComJossemargtSaoEntry struct {
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
// Identifies when an Entry has been processed using a CMS Entry Token. The default value is true, in other words
// any submitted Entry will use a CMS Token
Token bool `form:"token" json:"token" yaml:"token" xml:"token"`
}
Any source code or input to be compiled, executed and evaluated (default view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; view=default
func (*ComJossemargtSaoEntry) Validate ¶
func (mt *ComJossemargtSaoEntry) Validate() (err error)
Validate validates the ComJossemargtSaoEntry media type instance.
type ComJossemargtSaoEntryCollection ¶
type ComJossemargtSaoEntryCollection []*ComJossemargtSaoEntry
ComJossemargtSaoEntryCollection is the media type for an array of ComJossemargtSaoEntry (default view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; type=collection; view=default
func (ComJossemargtSaoEntryCollection) Validate ¶
func (mt ComJossemargtSaoEntryCollection) Validate() (err error)
Validate validates the ComJossemargtSaoEntryCollection media type instance.
type ComJossemargtSaoEntryFull ¶
type ComJossemargtSaoEntryFull struct {
// Contest ID where this Entry has been submitted
ContestID int `form:"contestID" json:"contestID" yaml:"contestID" xml:"contestID"`
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
// Identifies the programming language used in the entry's content. The special keyword "none" should be used
// instead when submitting plain text, which are used for user test inputs and diff based grading
Language string `form:"language" json:"language" yaml:"language" xml:"language"`
// Links to related resources
Links *ComJossemargtSaoEntryLinks `form:"links,omitempty" json:"links,omitempty" yaml:"links,omitempty" xml:"links,omitempty"`
// Task ID where this Entry has been submitted
TaskID int `form:"taskID" json:"taskID" yaml:"taskID" xml:"taskID"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
// Identifies when an Entry has been processed using a CMS Entry Token. The default value is true, in other words
// any submitted Entry will use a CMS Token
Token bool `form:"token" json:"token" yaml:"token" xml:"token"`
// User ID of the Entry's owner
UserID int `form:"userID" json:"userID" yaml:"userID" xml:"userID"`
}
Any source code or input to be compiled, executed and evaluated (full view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; view=full
func (*ComJossemargtSaoEntryFull) Validate ¶
func (mt *ComJossemargtSaoEntryFull) Validate() (err error)
Validate validates the ComJossemargtSaoEntryFull media type instance.
type ComJossemargtSaoEntryFullCollection ¶
type ComJossemargtSaoEntryFullCollection []*ComJossemargtSaoEntryFull
ComJossemargtSaoEntryCollection is the media type for an array of ComJossemargtSaoEntry (full view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; type=collection; view=full
func (ComJossemargtSaoEntryFullCollection) Validate ¶
func (mt ComJossemargtSaoEntryFullCollection) Validate() (err error)
Validate validates the ComJossemargtSaoEntryFullCollection media type instance.
type ComJossemargtSaoEntryLink ¶
type ComJossemargtSaoEntryLink struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique entry ID
ID int `form:"id" json:"id" yaml:"id" xml:"id"`
}
Any source code or input to be compiled, executed and evaluated (link view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; view=link
func (*ComJossemargtSaoEntryLink) Validate ¶
func (mt *ComJossemargtSaoEntryLink) Validate() (err error)
Validate validates the ComJossemargtSaoEntryLink media type instance.
type ComJossemargtSaoEntryLinkCollection ¶
type ComJossemargtSaoEntryLinkCollection []*ComJossemargtSaoEntryLink
ComJossemargtSaoEntryCollection is the media type for an array of ComJossemargtSaoEntry (link view)
Identifier: application/vnd.com.jossemargt.sao.entry+json; type=collection; view=link
func (ComJossemargtSaoEntryLinkCollection) Validate ¶
func (mt ComJossemargtSaoEntryLinkCollection) Validate() (err error)
Validate validates the ComJossemargtSaoEntryLinkCollection media type instance.
type ComJossemargtSaoEntryLinks ¶
type ComJossemargtSaoEntryLinks struct {
Result *ComJossemargtSaoResultLink `form:"result,omitempty" json:"result,omitempty" yaml:"result,omitempty" xml:"result,omitempty"`
}
ComJossemargtSaoEntryLinks contains links to related resources of ComJossemargtSaoEntry.
func (*ComJossemargtSaoEntryLinks) Validate ¶
func (ut *ComJossemargtSaoEntryLinks) Validate() (err error)
Validate validates the ComJossemargtSaoEntryLinks type instance.
type ComJossemargtSaoEntryLinksArray ¶
type ComJossemargtSaoEntryLinksArray []*ComJossemargtSaoEntryLinks
ComJossemargtSaoEntryLinksArray contains links to related resources of ComJossemargtSaoEntryCollection.
func (ComJossemargtSaoEntryLinksArray) Validate ¶
func (ut ComJossemargtSaoEntryLinksArray) Validate() (err error)
Validate validates the ComJossemargtSaoEntryLinksArray type instance.
type ComJossemargtSaoEntrySubmitTransaction ¶
type ComJossemargtSaoEntrySubmitTransaction struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitEntryTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
}
Represents the process of queueing, compilation, evaluation and grading of an Entry (default view)
Identifier: application/vnd.com.jossemargt.sao.entry-submit-transaction+json; view=default
func (*ComJossemargtSaoEntrySubmitTransaction) Validate ¶
func (mt *ComJossemargtSaoEntrySubmitTransaction) Validate() (err error)
Validate validates the ComJossemargtSaoEntrySubmitTransaction media type instance.
type ComJossemargtSaoEntrySubmitTransactionFull ¶
type ComJossemargtSaoEntrySubmitTransactionFull struct {
// Transaction creation timestamp
CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,omitempty" yaml:"createdAt,omitempty" xml:"createdAt,omitempty"`
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitEntryTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
// Links to related resources
Links *ComJossemargtSaoEntrySubmitTransactionLinks `form:"links,omitempty" json:"links,omitempty" yaml:"links,omitempty" xml:"links,omitempty"`
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
// Transaction last update timestamp
UpdatedAt *time.Time `form:"updatedAt,omitempty" json:"updatedAt,omitempty" yaml:"updatedAt,omitempty" xml:"updatedAt,omitempty"`
}
Represents the process of queueing, compilation, evaluation and grading of an Entry (full view)
Identifier: application/vnd.com.jossemargt.sao.entry-submit-transaction+json; view=full
func (*ComJossemargtSaoEntrySubmitTransactionFull) Validate ¶
func (mt *ComJossemargtSaoEntrySubmitTransactionFull) Validate() (err error)
Validate validates the ComJossemargtSaoEntrySubmitTransactionFull media type instance.
type ComJossemargtSaoEntrySubmitTransactionLink ¶
type ComJossemargtSaoEntrySubmitTransactionLink struct {
// API href for making requests on the entry
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Unique SubmitEntryTransaction ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
Represents the process of queueing, compilation, evaluation and grading of an Entry (link view)
Identifier: application/vnd.com.jossemargt.sao.entry-submit-transaction+json; view=link
func (*ComJossemargtSaoEntrySubmitTransactionLink) Validate ¶
func (mt *ComJossemargtSaoEntrySubmitTransactionLink) Validate() (err error)
Validate validates the ComJossemargtSaoEntrySubmitTransactionLink media type instance.
type ComJossemargtSaoEntrySubmitTransactionLinks ¶
type ComJossemargtSaoEntrySubmitTransactionLinks struct {
Entry *ComJossemargtSaoEntryLink `form:"entry,omitempty" json:"entry,omitempty" yaml:"entry,omitempty" xml:"entry,omitempty"`
}
ComJossemargtSaoEntry-Submit-TransactionLinks contains links to related resources of ComJossemargtSaoEntry-Submit-Transaction.
func (*ComJossemargtSaoEntrySubmitTransactionLinks) Validate ¶
func (ut *ComJossemargtSaoEntrySubmitTransactionLinks) Validate() (err error)
Validate validates the ComJossemargtSaoEntrySubmitTransactionLinks type instance.
type ComJossemargtSaoResult ¶
type ComJossemargtSaoResult struct {
// Entry evaluation result
Evaluation *EvaluationResult `form:"evaluation" json:"evaluation" yaml:"evaluation" xml:"evaluation"`
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
// Entry graded score
Score *ScoreResult `form:"score,omitempty" json:"score,omitempty" yaml:"score,omitempty" xml:"score,omitempty"`
}
The representation of the result of an entry compile, evaluation and grading process (default view)
Identifier: application/vnd.com.jossemargt.sao.result+json; view=default
func (*ComJossemargtSaoResult) Validate ¶
func (mt *ComJossemargtSaoResult) Validate() (err error)
Validate validates the ComJossemargtSaoResult media type instance.
type ComJossemargtSaoResultCollection ¶
type ComJossemargtSaoResultCollection []*ComJossemargtSaoResult
ComJossemargtSaoResultCollection is the media type for an array of ComJossemargtSaoResult (default view)
Identifier: application/vnd.com.jossemargt.sao.result+json; type=collection; view=default
func (ComJossemargtSaoResultCollection) Validate ¶
func (mt ComJossemargtSaoResultCollection) Validate() (err error)
Validate validates the ComJossemargtSaoResultCollection media type instance.
type ComJossemargtSaoResultFull ¶
type ComJossemargtSaoResultFull struct {
// Entry compilation result
Compilation *CompilationResult `form:"compilation,omitempty" json:"compilation,omitempty" yaml:"compilation,omitempty" xml:"compilation,omitempty"`
// Entry evaluation result
Evaluation *EvaluationResult `form:"evaluation" json:"evaluation" yaml:"evaluation" xml:"evaluation"`
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
// Entry graded score
Score *ScoreResult `form:"score,omitempty" json:"score,omitempty" yaml:"score,omitempty" xml:"score,omitempty"`
}
The representation of the result of an entry compile, evaluation and grading process (full view)
Identifier: application/vnd.com.jossemargt.sao.result+json; view=full
func (*ComJossemargtSaoResultFull) Validate ¶
func (mt *ComJossemargtSaoResultFull) Validate() (err error)
Validate validates the ComJossemargtSaoResultFull media type instance.
type ComJossemargtSaoResultFullCollection ¶
type ComJossemargtSaoResultFullCollection []*ComJossemargtSaoResultFull
ComJossemargtSaoResultCollection is the media type for an array of ComJossemargtSaoResult (full view)
Identifier: application/vnd.com.jossemargt.sao.result+json; type=collection; view=full
func (ComJossemargtSaoResultFullCollection) Validate ¶
func (mt ComJossemargtSaoResultFullCollection) Validate() (err error)
Validate validates the ComJossemargtSaoResultFullCollection media type instance.
type ComJossemargtSaoResultLink ¶
type ComJossemargtSaoResultLink struct {
// API href for making requests on the result
Href string `form:"href" json:"href" yaml:"href" xml:"href"`
// Compound Result ID
ID string `form:"id" json:"id" yaml:"id" xml:"id"`
}
The representation of the result of an entry compile, evaluation and grading process (link view)
Identifier: application/vnd.com.jossemargt.sao.result+json; view=link
func (*ComJossemargtSaoResultLink) Validate ¶
func (mt *ComJossemargtSaoResultLink) Validate() (err error)
Validate validates the ComJossemargtSaoResultLink media type instance.
type ComJossemargtSaoResultLinkCollection ¶
type ComJossemargtSaoResultLinkCollection []*ComJossemargtSaoResultLink
ComJossemargtSaoResultCollection is the media type for an array of ComJossemargtSaoResult (link view)
Identifier: application/vnd.com.jossemargt.sao.result+json; type=collection; view=link
func (ComJossemargtSaoResultLinkCollection) Validate ¶
func (mt ComJossemargtSaoResultLinkCollection) Validate() (err error)
Validate validates the ComJossemargtSaoResultLinkCollection media type instance.
type ComJossemargtSaoScoreSum ¶
type ComJossemargtSaoScoreSum struct {
// Contest Identifier associated with this score
ContestID *int `form:"contestID,omitempty" json:"contestID,omitempty" yaml:"contestID,omitempty" xml:"contestID,omitempty"`
// The graded value relative to the contest
ContestValue float64 `form:"contestValue" json:"contestValue" yaml:"contestValue" xml:"contestValue"`
// Contest Identifier associated with this score
TaskID *int `form:"taskID,omitempty" json:"taskID,omitempty" yaml:"taskID,omitempty" xml:"taskID,omitempty"`
// The graded value relative to the Task total score
TaskValue float64 `form:"taskValue" json:"taskValue" yaml:"taskValue" xml:"taskValue"`
// Contest Identifier associated with this score
UserID *int `form:"userID,omitempty" json:"userID,omitempty" yaml:"userID,omitempty" xml:"userID,omitempty"`
}
The representation of a summarized entry's score (default view)
Identifier: application/vnd.com.jossemargt.sao.score-sum+json; view=default
func (*ComJossemargtSaoScoreSum) Validate ¶
func (mt *ComJossemargtSaoScoreSum) Validate() (err error)
Validate validates the ComJossemargtSaoScoreSum media type instance.
type CompilationResult ¶
type CompilationResult struct {
// Memory consumed
Memory int `form:"memory" json:"memory" yaml:"memory" xml:"memory"`
// Execution result status
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
// Compilation process' standard error
Stderr string `form:"stderr" json:"stderr" yaml:"stderr" xml:"stderr"`
// Compilation process' standard output
Stdout string `form:"stdout" json:"stdout" yaml:"stdout" xml:"stdout"`
// The spent execution CPU time
Time float64 `form:"time" json:"time" yaml:"time" xml:"time"`
// Compilation retries
Tries int `form:"tries" json:"tries" yaml:"tries" xml:"tries"`
// The spent execution human perceived time
WallClockTime float64 `form:"wallClockTime" json:"wallClockTime" yaml:"wallClockTime" xml:"wallClockTime"`
}
Embedded representation of an entry compilation result. It can be unprocessed when compilation is pending, otherwise it should be either ok or fail.
func (*CompilationResult) Validate ¶
func (ut *CompilationResult) Validate() (err error)
Validate validates the CompilationResult type instance.
type EntryPayload ¶
type EntryPayload struct {
// Contest unique and human readable string identifier
ContestSlug string `form:"contestSlug" json:"contestSlug" yaml:"contestSlug" xml:"contestSlug"`
// Source files representation. Within this list the source code files and input files can be sent alike.
Sources []*EntrySource `form:"sources" json:"sources" yaml:"sources" xml:"sources"`
// Task unique and human readable string identifier
TaskSlug string `form:"taskSlug" json:"taskSlug" yaml:"taskSlug" xml:"taskSlug"`
// Identifies when an Entry has been processed using a CMS Entry Token. The default value is true, in other words
// any submitted Entry will use a CMS Token
Token bool `form:"token" json:"token" yaml:"token" xml:"token"`
}
Any source code or input that should be compiled, executed or evaluated
func (*EntryPayload) Validate ¶
func (ut *EntryPayload) Validate() (err error)
Validate validates the EntryPayload type instance.
type EntrySource ¶
type EntrySource struct {
// Source content
Content string `form:"content" json:"content" yaml:"content" xml:"content"`
// Also known as filepattern, and is expected to be sent along with the filename. This field is defined by the
// Task resource
Fileid string `form:"fileid" json:"fileid" yaml:"fileid" xml:"fileid"`
// Source file name including its extension. This field's value should comply with the name format (fileid)
// constraint declared by the Task resource. Taking the "batch.%l" format as example, the valid source code file
// names could be "batch.py", "batch.cpp" or "batch.js"
Filename string `form:"filename" json:"filename" yaml:"filename" xml:"filename"`
// Identifies the programming language used in the entry's content. This attribute can be omitted for "plain text" files
Language string `form:"language" json:"language" yaml:"language" xml:"language"`
}
Entry's embed type which represents a source file
type EvaluationResult ¶
type EvaluationResult struct {
// Execution result status. It only indicates if the result has been evaluated or not
Status string `form:"status" json:"status" yaml:"status" xml:"status"`
// Evaluation retries
Tries int `form:"tries" json:"tries" yaml:"tries" xml:"tries"`
}
Embedded representation of an entry evaluation result
func (*EvaluationResult) Validate ¶
func (ut *EvaluationResult) Validate() (err error)
Validate validates the EvaluationResult type instance.
type ExecutionResult ¶
type ExecutionResult struct {
// Memory consumed
Memory int `form:"memory" json:"memory" yaml:"memory" xml:"memory"`
// Execution output
Output string `form:"output" json:"output" yaml:"output" xml:"output"`
// The spent execution CPU time
Time float64 `form:"time" json:"time" yaml:"time" xml:"time"`
// The spent execution human perceived time
WallClockTime float64 `form:"wallClockTime" json:"wallClockTime" yaml:"wallClockTime" xml:"wallClockTime"`
}
Embedded representation of an entry execution result
type ScoreResult ¶
type ScoreResult struct {
// The graded value relative to the Contest score
ContestValue float64 `form:"contestValue" json:"contestValue" yaml:"contestValue" xml:"contestValue"`
// The graded value relative to the Task score (percent of successful runs against task's dataset)
TaskValue float64 `form:"taskValue" json:"taskValue" yaml:"taskValue" xml:"taskValue"`
}
Embedded representation of the entry's scoring after being evaluated