router

package
v0.0.0-...-98b73d7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

This file has been generated by go-spector; DO NOT EDIT.

This file has been generated by go-spector; DO NOT EDIT.

This file has been generated by go-spector; DO NOT EDIT.

This file has been generated by go-spector; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var GetHandlerParamsKey = &struct{ i int }{}

Functions

func New

func New(getFn http.HandlerFunc, addFn http.HandlerFunc) func(r chi.Router)

func NewWithMiddleware

func NewWithMiddleware(
	getFn http.HandlerFunc,
	addFn http.HandlerFunc,
	middlewares chi.Middlewares,
) chi.Router

Types

type AddHandler

type AddHandler http.HandlerFunc

func NewAddHandler

func NewAddHandler(fn http.HandlerFunc) AddHandler

func (AddHandler) DecodeCustomer

func (h AddHandler) DecodeCustomer(r *http.Request) error

func (AddHandler) ServeHTTP

func (h AddHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GetHandler

type GetHandler http.HandlerFunc

func NewGetHandler

func NewGetHandler(fn http.HandlerFunc) GetHandler

func (GetHandler) DecodeParams

func (h GetHandler) DecodeParams(r *http.Request) error

func (GetHandler) ServeHTTP

func (h GetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Params

type Params struct {
	ID string
}

Jump to

Keyboard shortcuts

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