users

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: 8 Imported by: 0

Documentation

Overview

Handler for logging in a user

Handler for logging out a user

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(r *request.Request) (request.Response, error)

LoginHandler handles login requests

func LogoutHandler

func LogoutHandler(r *request.Request) (request.Response, error)

LogoutHandler handles logout requests

func RegisterHandler

func RegisterHandler(r *request.Request) (request.Response, error)

func ViewHandler

func ViewHandler(r *request.Request) (request.Response, error)

Types

type ListParams

type ListParams struct {
	Submissions submissions.SubmissionList
	Problems    models.ProblemMap
	Filtered    bool
	Username    string
}

type LoginParams

type LoginParams struct {
	Error string
}

type RegisterParams

type RegisterParams struct {
	Error string
}

Jump to

Keyboard shortcuts

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