handlers

package
v0.0.0-...-dde639c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Index(w http.ResponseWriter, r *http.Request)
	//ViewProducts(w http.ResponseWriter, r *http.Request)
	ViewProduct(w http.ResponseWriter, r *http.Request)
	AddProduct(w http.ResponseWriter, r *http.Request)
}

Handler Handler

type Product

type Product struct {
	ID   int64
	Sku  string
	Name string
}

Product Product

type SiteHandler

type SiteHandler struct {
	Templates *template.Template
}

SiteHandler SiteHandler

func (*SiteHandler) AddProduct

func (h *SiteHandler) AddProduct(w http.ResponseWriter, r *http.Request)

AddProduct AddProduct

func (*SiteHandler) Index

func (h *SiteHandler) Index(w http.ResponseWriter, r *http.Request)

Index Index

func (*SiteHandler) New

func (h *SiteHandler) New() Handler

New New

func (*SiteHandler) ViewProduct

func (h *SiteHandler) ViewProduct(w http.ResponseWriter, r *http.Request)

ViewProduct ViewProduct

Jump to

Keyboard shortcuts

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