Back to godoc.org

Package handlers

v0.3.0
Latest Go to latest

The highest tagged major version is .

Published: Jan 11, 2020 | License: Apache-2.0 | Module: github.com/gky360/atsrv

Index

func Login

func Login(h *Handler, password string) error

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"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier