Documentation
¶
Index ¶
Constants ¶
View Source
const ( CtxKeyAccessClaims key = iota // must be 0 to work with the auth-package CtxKeyGroup key = iota CtxKeyMaterial key = iota CtxKeyCourse key = iota CtxKeyCourseRole key = iota CtxKeyUser key = iota CtxKeyTask key = iota CtxKeySubmission key = iota CtxKeySheet key = iota CtxKeyGrade key = iota CtxKeyExam key = iota )
to replace
context.WithValue(ctx, "course", course)
and
r.Context().Value(symbol.CtxKeyCourse)
TODO(): create a shared context-key package
View Source
const ( TestingStateEnqueue testingState = 0 // submission has arrived TestingStateRunning testingState = 1 // submission test is running TestingStateFinished testingState = 2 // submission test has finished )
these are states of a submission life-cycle
Variables ¶
View Source
var ( // GitCommit is the git commit that was compiled GitCommit string = "YXZ" // VersionMajor is for an API incompatible changes. VersionMajor int64 = 0 // VersionMinor is for functionality in a backwards-compatible manner. VersionMinor int64 = 0 // VersionPatch is for backwards-compatible bug fixes. VersionPatch int64 = 1 // VersionPre indicates prerelease. VersionPre = "beta-1" // VersionDev indicates development branch. Releases will be empty string. VersionDev string )
View Source
var Version = semver.Version{ Major: VersionMajor, Minor: VersionMinor, Patch: VersionPatch, PreRelease: semver.PreRelease(VersionPre), Metadata: VersionDev, }
Version is the specification version that the package types support.
Functions ¶
This section is empty.
Types ¶
type TestingResult ¶
type TestingResult int64
const ( TestingResultSuccess TestingResult = 0 // docker was able to test (but test could have failed) TestingResultFailed TestingResult = 1 // something went wrong with docker )
func (TestingResult) AsInt64 ¶
func (t TestingResult) AsInt64() int64
Click to show internal directories.
Click to hide internal directories.