handlers

package
v0.0.0-...-3a0a0a1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(w http.ResponseWriter, req *http.Request) error

func AddCategory

func AddCategory(w http.ResponseWriter, req *http.Request) error

func AddProduct

func AddProduct(w http.ResponseWriter, req *http.Request) error

func Admin

func Admin(req *http.Request) bool

func AdminAddProductPage

func AdminAddProductPage(w http.ResponseWriter, req *http.Request) error

func AdminCategoryPage

func AdminCategoryPage(w http.ResponseWriter, req *http.Request) error

func AdminPage

func AdminPage(w http.ResponseWriter, req *http.Request) error

func AdminProductPage

func AdminProductPage(w http.ResponseWriter, req *http.Request) error

func AdminWholesaler

func AdminWholesaler(w http.ResponseWriter, req *http.Request) error

func AdminWholesalerConfirm

func AdminWholesalerConfirm(w http.ResponseWriter, req *http.Request) error

func AdminWholesalerDelete

func AdminWholesalerDelete(w http.ResponseWriter, req *http.Request) error

func AdminWholesalerUpdate

func AdminWholesalerUpdate(w http.ResponseWriter, req *http.Request) error

func AdminWholesalers

func AdminWholesalers(w http.ResponseWriter, req *http.Request) error

func Anyone

func Anyone(req *http.Request) bool

func Authentication

func Authentication(h http.Handler) http.Handler

func BackupDB

func BackupDB(w http.ResponseWriter, req *http.Request) error

func Blog

func Blog(w http.ResponseWriter, req *http.Request) error

func BlogForm

func BlogForm(w http.ResponseWriter, req *http.Request) error

func BlogImage

func BlogImage(w http.ResponseWriter, req *http.Request) error

func Cart

func Cart(w http.ResponseWriter, req *http.Request) error

func Category

func Category(w http.ResponseWriter, req *http.Request) error

func Close

func Close()

func Confirm

func Confirm(w http.ResponseWriter, req *http.Request) error

func ConfirmInvoice

func ConfirmInvoice(w http.ResponseWriter, req *http.Request) error

func Contact

func Contact(w http.ResponseWriter, req *http.Request) error

func CreateBlog

func CreateBlog(w http.ResponseWriter, req *http.Request) error

func DeleteBlog

func DeleteBlog(w http.ResponseWriter, req *http.Request) error

func DeleteCategory

func DeleteCategory(w http.ResponseWriter, req *http.Request) error

func DeleteProduct

func DeleteProduct(w http.ResponseWriter, req *http.Request) error

func DoContact

func DoContact(w http.ResponseWriter, req *http.Request) error

func DoLogin

func DoLogin(w http.ResponseWriter, req *http.Request) error

func DoLogout

func DoLogout(w http.ResponseWriter, req *http.Request) error

func DoResetPassword

func DoResetPassword(w http.ResponseWriter, req *http.Request) error

func ETag

func ETag(h http.Handler) http.Handler

ETag short-circuts the request if the client already has this resource.

func GetProduct

func GetProduct(w http.ResponseWriter, req *http.Request) error

func HandleErr

func HandleErr(f HandlerFunc) http.HandlerFunc

func Home

func Home(w http.ResponseWriter, req *http.Request) error

func Human

func Human(req *http.Request) bool

func IPWhitelist

func IPWhitelist(req *http.Request) bool

CheckIPWhitelist makes sure the provided remote address (of the form IP:port) falls within the provided IP range (in CIDR form or a single IP address).

func Image

func Image(w http.ResponseWriter, req *http.Request) error

func Init

func Init(c config.Config)

func Invoice

func Invoice(w http.ResponseWriter, req *http.Request) error

func LineItem

func LineItem(w http.ResponseWriter, req *http.Request) error

func Log

func Log(logOutput string) alice.Constructor

func Login

func Login(w http.ResponseWriter, req *http.Request) error

func Logout

func Logout(w http.ResponseWriter, req *http.Request) error

func ManageBlogs

func ManageBlogs(w http.ResponseWriter, req *http.Request) error

func NewWholesaler

func NewWholesaler(req *http.Request) bool

func NotFound

func NotFound(w http.ResponseWriter, req *http.Request)

func Perm

func Perm(f ACL) alice.Constructor

func Product

func Product(w http.ResponseWriter, req *http.Request) error

func Purchase

func Purchase(w http.ResponseWriter, req *http.Request) error

func Read

func Read(req *http.Request) bool

func Redirect

func Redirect(w http.ResponseWriter, req *http.Request)

func RenameCategory

func RenameCategory(w http.ResponseWriter, req *http.Request) error

func RenameSubcategory

func RenameSubcategory(w http.ResponseWriter, req *http.Request) error

func ResetPage

func ResetPage(w http.ResponseWriter, req *http.Request) error

func ResetPassword

func ResetPassword(w http.ResponseWriter, req *http.Request) error

func SendReset

func SendReset(w http.ResponseWriter, req *http.Request) error

func Shop

func Shop(w http.ResponseWriter, req *http.Request) error

func SubCategory

func SubCategory(w http.ResponseWriter, req *http.Request) error

func UpdateBlog

func UpdateBlog(w http.ResponseWriter, req *http.Request) error

func UpdatePrice

func UpdatePrice(w http.ResponseWriter, req *http.Request) error

func UpdateProduct

func UpdateProduct(w http.ResponseWriter, req *http.Request) error

func Wholesale

func Wholesale(w http.ResponseWriter, req *http.Request) error

func WholesaleApplication

func WholesaleApplication(w http.ResponseWriter, req *http.Request) error

func WholesaleApply

func WholesaleApply(w http.ResponseWriter, req *http.Request) error

func WholesaleThanks

func WholesaleThanks(w http.ResponseWriter, req *http.Request) error

func WholesaleVerify

func WholesaleVerify(w http.ResponseWriter, req *http.Request) error

func Wholesaler

func Wholesaler(req *http.Request) bool

Types

type ACL

type ACL func(req *http.Request) bool

func And

func And(acls ...ACL) ACL

func Or

func Or(acls ...ACL) ACL

type HandlerFunc

type HandlerFunc func(http.ResponseWriter, *http.Request) error

func GetWebhooks

func GetWebhooks(ch chan bool) HandlerFunc

func Static

func Static() HandlerFunc

Jump to

Keyboard shortcuts

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