handlers

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(h *Handler, password string) error

Types

type AtsrvConfig

type AtsrvConfig struct {
	UserID    string `split_words:"true"`
	AuthToken string `split_words:"true"`
	Host      string `default:"localhost"`
	Port      string `default:"4700"`
	Headless  bool
	Debug     bool
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(page *agouti.Page, config AtsrvConfig) *Handler

func (*Handler) GetContest

func (h *Handler) GetContest(c echo.Context) (err error)

func (*Handler) GetSubmission

func (h *Handler) GetSubmission(c echo.Context) (err error)

func (*Handler) GetSubmissions

func (h *Handler) GetSubmissions(c echo.Context) (err error)

func (*Handler) GetTask

func (h *Handler) GetTask(c echo.Context) (err error)

func (*Handler) GetTasks

func (h *Handler) GetTasks(c echo.Context) (err error)

func (*Handler) Join

func (h *Handler) Join(c echo.Context) (err error)

func (*Handler) Me

func (h *Handler) Me(c echo.Context) (err error)

func (*Handler) PostSubmission

func (h *Handler) PostSubmission(c echo.Context) (err error)

func (*Handler) Root

func (h *Handler) Root(c echo.Context) error

type RspGetSubmissions

type RspGetSubmissions struct {
	Submissions []*models.Submission `json:"submissions" yaml:"submissions"`
}

type RspGetTasks

type RspGetTasks struct {
	Tasks []*models.Task `json:"tasks" yaml:"tasks"`
}

type RspRoot

type RspRoot struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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