Documentation ¶
Index ¶
- Variables
- func CreateJudge(ctx context.Context, judge judge_model.Judge) (*judge_model.Judge, error)
- func CreateJudgeResult(ctx context.Context, judgeResult judge_model.JudgeResult) (*judge_model.JudgeResult, error)
- func GetJudge(ctx context.Context, uid uuid.UUID) (*judge_model.Judge, error)
- func GetJudgeList(ctx context.Context, options judge_model.GetJudgeOptions) ([]*judge_model.Judge, int64, error)
- func GetJudgeUIDFromStreamID(streamID string) (*uuid.UUID, error)
- func GetRankList(_ context.Context, account *string, limit, offset *int) ([]judge_model.JudgeRank, int64, error)
- func PickJudgeTask(ctx context.Context, consumer string) (*judge_model.JudgeTask, error)
- func ReportJudgeResult(ctx context.Context, result judge_model.JudgeResult) (*judge_model.JudgeResult, error)
- func ReportJudgeResultCount(ctx context.Context, judgeUID uuid.UUID, resultCount uint) error
- func ReportJudgeTask(ctx context.Context, consumer string, streamID string, ...) error
- func UpsertJudgeCache(ctx context.Context, uid uuid.UUID, verdict judge_model.JudgeVerdict) error
- type Time
- type VerdictJson
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidJudgeStatus = fmt.Errorf("invalid judge status")
View Source
var ErrJudgeNotFound = fmt.Errorf("judge not found")
Functions ¶
func CreateJudge ¶
func CreateJudge( ctx context.Context, judge judge_model.Judge, ) (*judge_model.Judge, error)
func CreateJudgeResult ¶
func CreateJudgeResult( ctx context.Context, judgeResult judge_model.JudgeResult, ) (*judge_model.JudgeResult, error)
func GetJudgeList ¶
func GetJudgeList( ctx context.Context, options judge_model.GetJudgeOptions, ) ([]*judge_model.Judge, int64, error)
func GetRankList ¶
func PickJudgeTask ¶
func ReportJudgeResult ¶
func ReportJudgeResult( ctx context.Context, result judge_model.JudgeResult, ) (*judge_model.JudgeResult, error)
func ReportJudgeResultCount ¶
func ReportJudgeTask ¶
func ReportJudgeTask( ctx context.Context, consumer string, streamID string, verdict judge_model.JudgeVerdict, ) error
func UpsertJudgeCache ¶
func UpsertJudgeCache(ctx context.Context, uid uuid.UUID, verdict judge_model.JudgeVerdict) error
Types ¶
Click to show internal directories.
Click to hide internal directories.