controller

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by go-congen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(controller Controller) http.Handler

Types

type Controller

type Controller interface {
	ViewData(request *http.Request, lastError error) (interface{}, error)
	Do(writer http.ResponseWriter, request *http.Request, params Params) error
	DoDelete(writer http.ResponseWriter, request *http.Request, params DeleteParams) error
	DoResetPassword(writer http.ResponseWriter, request *http.Request, params ResetPasswordParams) error
}

type DeleteParams

type DeleteParams struct {
	User  string
	User2 string
}

func (*DeleteParams) Parse

func (params *DeleteParams) Parse(request *http.Request) error

type Params

type Params struct {
	Location string
	User     string
	Password string
	Year     int64
	Score    float64
	Csrf     string
}

func (*Params) Parse

func (params *Params) Parse(request *http.Request) error

type ResetPasswordParams

type ResetPasswordParams struct {
	Password string
	User     string
}

func (*ResetPasswordParams) Parse

func (params *ResetPasswordParams) Parse(request *http.Request) error

Jump to

Keyboard shortcuts

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