responses

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	ID         string
	Title      string
	StartAt    time.Time
	Duration   time.Duration
	TargetRate string
}

func (Contest) ToModel

func (c Contest) ToModel() *models.Contest

type ContestArchive

type ContestArchive struct {
	CurrentPage int
	TotalPages  int
	Contests    ContestArchive_ContestList
}

type ContestArchive_Contest

type ContestArchive_Contest struct {
	ID         string
	Title      string
	StartAt    time.Time
	Duration   time.Duration
	TargetRate string
}

func (ContestArchive_Contest) ToModel

func (c ContestArchive_Contest) ToModel(ratedType *string) models.Contest

type ContestArchive_ContestList

type ContestArchive_ContestList []ContestArchive_Contest

func (ContestArchive_ContestList) IDs

type ContestTask

type ContestTask struct {
	ContestID string
	Tasks     []ContestTask_Task
}

func (ContestTask) ToModel

func (ct ContestTask) ToModel() []models.ContestTask

type ContestTask_Task

type ContestTask_Task struct {
	ID        string
	Title     string
	Index     string
	TimeLimit time.Duration
	Memory    int
}

type Home

type Home struct {
	CSRFToken string
}

type Login

type Login struct {
	LoggedIn  bool
	CSRFToken string
}

type Submit

type Submit struct {
	Submitted bool
}

type Task

type Task struct {
	ID        string
	Score     *int
	Samples   []Task_Sample
	CSRFToken string
	LoggedIn  bool
}

type Task_Sample

type Task_Sample struct {
	Input  string
	Output string
}

Jump to

Keyboard shortcuts

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