app

package
v0.0.0-...-98441cc Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DraftHref

func DraftHref() string

DraftHref returns the resource href.

func DraftSubmitTrxHref

func DraftSubmitTrxHref() string

DraftSubmitTrxHref returns the resource href.

func DraftresultHref

func DraftresultHref() string

DraftresultHref returns the resource href.

func EntryHref

func EntryHref() string

EntryHref returns the resource href.

func EntrySubmitTrxHref

func EntrySubmitTrxHref() string

EntrySubmitTrxHref returns the resource href.

func MountActionsController

func MountActionsController(service *goa.Service, ctrl ActionsController)

MountActionsController "mounts" a Actions resource controller on the given service.

func MountDraftController

func MountDraftController(service *goa.Service, ctrl DraftController)

MountDraftController "mounts" a Draft resource controller on the given service.

func MountDraftSubmitTrxController

func MountDraftSubmitTrxController(service *goa.Service, ctrl DraftSubmitTrxController)

MountDraftSubmitTrxController "mounts" a DraftSubmitTrx resource controller on the given service.

func MountDraftresultController

func MountDraftresultController(service *goa.Service, ctrl DraftresultController)

MountDraftresultController "mounts" a Draftresult resource controller on the given service.

func MountEntryController

func MountEntryController(service *goa.Service, ctrl EntryController)

MountEntryController "mounts" a Entry resource controller on the given service.

func MountEntrySubmitTrxController

func MountEntrySubmitTrxController(service *goa.Service, ctrl EntrySubmitTrxController)

MountEntrySubmitTrxController "mounts" a EntrySubmitTrx resource controller on the given service.

func MountResultController

func MountResultController(service *goa.Service, ctrl ResultController)

MountResultController "mounts" a Result resource controller on the given service.

func ResultHref

func ResultHref() string

ResultHref returns the resource href.

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 ActionsController

type ActionsController interface {
	goa.Muxer
	SubmitEntry(*SubmitEntryActionsContext) error
	SubmitEntryDraft(*SubmitEntryDraftActionsContext) error
	SummarizeScore(*SummarizeScoreActionsContext) error
}

ActionsController is the controller interface for the Actions actions.

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 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 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

Validate validates the ComJossemargtSaoDraftResultFullCollection media type instance.

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

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

Validate validates the ComJossemargtSaoDraftSubmitTransactionFull media type instance.

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

Validate validates the ComJossemargtSaoDraftSubmitTransactionLink media type instance.

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

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 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 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

Validate validates the ComJossemargtSaoEntrySubmitTransactionFull media type instance.

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

Validate validates the ComJossemargtSaoEntrySubmitTransactionLink media type instance.

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

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 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 DraftController

type DraftController interface {
	goa.Muxer
	Get(*GetDraftContext) error
	Show(*ShowDraftContext) error
}

DraftController is the controller interface for the Draft actions.

type DraftSubmitTrxController

type DraftSubmitTrxController interface {
	goa.Muxer
	Get(*GetDraftSubmitTrxContext) error
	Show(*ShowDraftSubmitTrxContext) error
}

DraftSubmitTrxController is the controller interface for the DraftSubmitTrx actions.

type DraftresultController

type DraftresultController interface {
	goa.Muxer
	Get(*GetDraftresultContext) error
	Show(*ShowDraftresultContext) error
}

DraftresultController is the controller interface for the Draftresult actions.

type EntryController

type EntryController interface {
	goa.Muxer
	Get(*GetEntryContext) error
	Show(*ShowEntryContext) error
}

EntryController is the controller interface for the Entry actions.

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 EntrySubmitTrxController

type EntrySubmitTrxController interface {
	goa.Muxer
	Get(*GetEntrySubmitTrxContext) error
	Show(*ShowEntrySubmitTrxContext) error
}

EntrySubmitTrxController is the controller interface for the EntrySubmitTrx actions.

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 GetDraftContext

type GetDraftContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	DraftID int
}

GetDraftContext provides the draft get action context.

func NewGetDraftContext

func NewGetDraftContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetDraftContext, error)

NewGetDraftContext parses the incoming request URL and body, performs validations and creates the context used by the draft controller get action.

func (*GetDraftContext) BadRequest

func (ctx *GetDraftContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetDraftContext) NotFound

func (ctx *GetDraftContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetDraftContext) OKFull

OKFull sends a HTTP response with status code 200.

type GetDraftSubmitTrxContext

type GetDraftSubmitTrxContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	TrxD  *int
	TrxID string
}

GetDraftSubmitTrxContext provides the DraftSubmitTrx get action context.

func NewGetDraftSubmitTrxContext

func NewGetDraftSubmitTrxContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetDraftSubmitTrxContext, error)

NewGetDraftSubmitTrxContext parses the incoming request URL and body, performs validations and creates the context used by the DraftSubmitTrx controller get action.

func (*GetDraftSubmitTrxContext) BadRequest

func (ctx *GetDraftSubmitTrxContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetDraftSubmitTrxContext) Gone

func (ctx *GetDraftSubmitTrxContext) Gone() error

Gone sends a HTTP response with status code 410.

func (*GetDraftSubmitTrxContext) NotFound

func (ctx *GetDraftSubmitTrxContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetDraftSubmitTrxContext) OKFull

OKFull sends a HTTP response with status code 200.

type GetDraftresultContext

type GetDraftresultContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ResultID string
}

GetDraftresultContext provides the draftresult get action context.

func NewGetDraftresultContext

func NewGetDraftresultContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetDraftresultContext, error)

NewGetDraftresultContext parses the incoming request URL and body, performs validations and creates the context used by the draftresult controller get action.

func (*GetDraftresultContext) BadRequest

func (ctx *GetDraftresultContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetDraftresultContext) NotFound

func (ctx *GetDraftresultContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetDraftresultContext) OKFull

OKFull sends a HTTP response with status code 200.

type GetEntryContext

type GetEntryContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	EntryID int
}

GetEntryContext provides the entry get action context.

func NewGetEntryContext

func NewGetEntryContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetEntryContext, error)

NewGetEntryContext parses the incoming request URL and body, performs validations and creates the context used by the entry controller get action.

func (*GetEntryContext) BadRequest

func (ctx *GetEntryContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetEntryContext) NotFound

func (ctx *GetEntryContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetEntryContext) OKFull

OKFull sends a HTTP response with status code 200.

type GetEntrySubmitTrxContext

type GetEntrySubmitTrxContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	TrxD  *int
	TrxID string
}

GetEntrySubmitTrxContext provides the EntrySubmitTrx get action context.

func NewGetEntrySubmitTrxContext

func NewGetEntrySubmitTrxContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetEntrySubmitTrxContext, error)

NewGetEntrySubmitTrxContext parses the incoming request URL and body, performs validations and creates the context used by the EntrySubmitTrx controller get action.

func (*GetEntrySubmitTrxContext) BadRequest

func (ctx *GetEntrySubmitTrxContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetEntrySubmitTrxContext) Gone

func (ctx *GetEntrySubmitTrxContext) Gone() error

Gone sends a HTTP response with status code 410.

func (*GetEntrySubmitTrxContext) NotFound

func (ctx *GetEntrySubmitTrxContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetEntrySubmitTrxContext) OKFull

OKFull sends a HTTP response with status code 200.

type GetResultContext

type GetResultContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	ResultID string
}

GetResultContext provides the result get action context.

func NewGetResultContext

func NewGetResultContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetResultContext, error)

NewGetResultContext parses the incoming request URL and body, performs validations and creates the context used by the result controller get action.

func (*GetResultContext) BadRequest

func (ctx *GetResultContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*GetResultContext) NotFound

func (ctx *GetResultContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*GetResultContext) OKFull

OKFull sends a HTTP response with status code 200.

type ResultController

type ResultController interface {
	goa.Muxer
	Get(*GetResultContext) error
	Show(*ShowResultContext) error
}

ResultController is the controller interface for the Result actions.

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

type ShowDraftContext

type ShowDraftContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Contest     int
	ContestSlug string
	Page        int
	PageSize    int
	Sort        string
	Task        int
	TaskSlug    string
	User        int
}

ShowDraftContext provides the draft show action context.

func NewShowDraftContext

func NewShowDraftContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowDraftContext, error)

NewShowDraftContext parses the incoming request URL and body, performs validations and creates the context used by the draft controller show action.

func (*ShowDraftContext) BadRequest

func (ctx *ShowDraftContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowDraftContext) OK

OK sends a HTTP response with status code 200.

func (*ShowDraftContext) OKFull

OKFull sends a HTTP response with status code 200.

OKLink sends a HTTP response with status code 200.

type ShowDraftSubmitTrxContext

type ShowDraftSubmitTrxContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ShowDraftSubmitTrxContext provides the DraftSubmitTrx show action context.

func NewShowDraftSubmitTrxContext

func NewShowDraftSubmitTrxContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowDraftSubmitTrxContext, error)

NewShowDraftSubmitTrxContext parses the incoming request URL and body, performs validations and creates the context used by the DraftSubmitTrx controller show action.

func (*ShowDraftSubmitTrxContext) BadRequest

func (ctx *ShowDraftSubmitTrxContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowDraftSubmitTrxContext) NotImplemented

func (ctx *ShowDraftSubmitTrxContext) NotImplemented() error

NotImplemented sends a HTTP response with status code 501.

type ShowDraftresultContext

type ShowDraftresultContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Contest     int
	ContestSlug string
	Entry       int
	Page        int
	PageSize    int
	Sort        string
	Task        int
	TaskSlug    string
	User        int
}

ShowDraftresultContext provides the draftresult show action context.

func NewShowDraftresultContext

func NewShowDraftresultContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowDraftresultContext, error)

NewShowDraftresultContext parses the incoming request URL and body, performs validations and creates the context used by the draftresult controller show action.

func (*ShowDraftresultContext) BadRequest

func (ctx *ShowDraftresultContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowDraftresultContext) OK

OK sends a HTTP response with status code 200.

func (*ShowDraftresultContext) OKFull

OKFull sends a HTTP response with status code 200.

OKLink sends a HTTP response with status code 200.

type ShowEntryContext

type ShowEntryContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Contest     int
	ContestSlug string
	Page        int
	PageSize    int
	Sort        string
	Task        int
	TaskSlug    string
	User        int
}

ShowEntryContext provides the entry show action context.

func NewShowEntryContext

func NewShowEntryContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowEntryContext, error)

NewShowEntryContext parses the incoming request URL and body, performs validations and creates the context used by the entry controller show action.

func (*ShowEntryContext) BadRequest

func (ctx *ShowEntryContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowEntryContext) OK

OK sends a HTTP response with status code 200.

func (*ShowEntryContext) OKFull

OKFull sends a HTTP response with status code 200.

OKLink sends a HTTP response with status code 200.

type ShowEntrySubmitTrxContext

type ShowEntrySubmitTrxContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ShowEntrySubmitTrxContext provides the EntrySubmitTrx show action context.

func NewShowEntrySubmitTrxContext

func NewShowEntrySubmitTrxContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowEntrySubmitTrxContext, error)

NewShowEntrySubmitTrxContext parses the incoming request URL and body, performs validations and creates the context used by the EntrySubmitTrx controller show action.

func (*ShowEntrySubmitTrxContext) BadRequest

func (ctx *ShowEntrySubmitTrxContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowEntrySubmitTrxContext) NotImplemented

func (ctx *ShowEntrySubmitTrxContext) NotImplemented() error

NotImplemented sends a HTTP response with status code 501.

type ShowResultContext

type ShowResultContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Contest     int
	ContestSlug string
	Entry       int
	Max         bool
	Page        int
	PageSize    int
	Sort        string
	Task        int
	TaskSlug    string
	User        int
	View        string
}

ShowResultContext provides the result show action context.

func NewShowResultContext

func NewShowResultContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowResultContext, error)

NewShowResultContext parses the incoming request URL and body, performs validations and creates the context used by the result controller show action.

func (*ShowResultContext) BadRequest

func (ctx *ShowResultContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*ShowResultContext) OK

OK sends a HTTP response with status code 200.

func (*ShowResultContext) OKFull

OKFull sends a HTTP response with status code 200.

OKLink sends a HTTP response with status code 200.

type SubmitEntryActionsContext

type SubmitEntryActionsContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *EntryPayload
}

SubmitEntryActionsContext provides the actions submitEntry action context.

func NewSubmitEntryActionsContext

func NewSubmitEntryActionsContext(ctx context.Context, r *http.Request, service *goa.Service) (*SubmitEntryActionsContext, error)

NewSubmitEntryActionsContext parses the incoming request URL and body, performs validations and creates the context used by the actions controller submitEntry action.

func (*SubmitEntryActionsContext) BadRequest

func (ctx *SubmitEntryActionsContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*SubmitEntryActionsContext) Created

Created sends a HTTP response with status code 201.

func (*SubmitEntryActionsContext) CreatedFull

CreatedFull sends a HTTP response with status code 201.

CreatedLink sends a HTTP response with status code 201.

func (*SubmitEntryActionsContext) NotImplemented

func (ctx *SubmitEntryActionsContext) NotImplemented() error

NotImplemented sends a HTTP response with status code 501.

type SubmitEntryDraftActionsContext

type SubmitEntryDraftActionsContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *EntryPayload
}

SubmitEntryDraftActionsContext provides the actions submitEntryDraft action context.

func NewSubmitEntryDraftActionsContext

func NewSubmitEntryDraftActionsContext(ctx context.Context, r *http.Request, service *goa.Service) (*SubmitEntryDraftActionsContext, error)

NewSubmitEntryDraftActionsContext parses the incoming request URL and body, performs validations and creates the context used by the actions controller submitEntryDraft action.

func (*SubmitEntryDraftActionsContext) BadRequest

func (ctx *SubmitEntryDraftActionsContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*SubmitEntryDraftActionsContext) Created

Created sends a HTTP response with status code 201.

func (*SubmitEntryDraftActionsContext) CreatedFull

CreatedFull sends a HTTP response with status code 201.

CreatedLink sends a HTTP response with status code 201.

func (*SubmitEntryDraftActionsContext) NotImplemented

func (ctx *SubmitEntryDraftActionsContext) NotImplemented() error

NotImplemented sends a HTTP response with status code 501.

type SummarizeScoreActionsContext

type SummarizeScoreActionsContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

SummarizeScoreActionsContext provides the actions summarizeScore action context.

func NewSummarizeScoreActionsContext

func NewSummarizeScoreActionsContext(ctx context.Context, r *http.Request, service *goa.Service) (*SummarizeScoreActionsContext, error)

NewSummarizeScoreActionsContext parses the incoming request URL and body, performs validations and creates the context used by the actions controller summarizeScore action.

func (*SummarizeScoreActionsContext) BadRequest

func (ctx *SummarizeScoreActionsContext) BadRequest(r error) error

BadRequest sends a HTTP response with status code 400.

func (*SummarizeScoreActionsContext) NotImplemented

func (ctx *SummarizeScoreActionsContext) NotImplemented() error

NotImplemented sends a HTTP response with status code 501.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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