paths

package
v0.0.0-...-1388524 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package paths is used to give static typing to paths served by the application.

Index

Constants

View Source
const (
	Home                = "home"
	Login               = "login"
	Logout              = "logout"
	Register            = "register"
	ProblemList         = "problem_list"
	Problem             = "problem"
	ProblemNameArg      = "problem_name"
	ProblemFile         = "problem_file"
	ProblemLangArg      = "problem_lang"
	ProblemFileArg      = "problem_file_name"
	SubmitProblem       = "submit_problem"
	Submission          = "submission"
	SubmissionIdArg     = "submission_id"
	User                = "user"
	UserNameArg         = "user_name"
	ContestTeams        = "contest_teams"
	ContestTeamRegister = "contest_team_register"
	ContestTeamStart    = "contest_team_start"
	ContestScoreboard   = "contest_scoreboard"
)

Variables

This section is empty.

Functions

func GetRouter

func GetRouter() *mux.Router

func Route

func Route(name string, args ...interface{}) string

Route resolves a route name together with arguments into a URL that can be used to invoke that route.

Types

This section is empty.

Jump to

Keyboard shortcuts

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