http

package
v0.0.0-...-895c7f9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APICurrentUser

func APICurrentUser(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APICurrentUser ...

func APIOrderDelete

func APIOrderDelete(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIOrderDelete ...

func APIOrderGet

func APIOrderGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIOrderGet ...

func APIOrderPatch

func APIOrderPatch(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIOrderPatch ...

func APIOrderPost

func APIOrderPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIOrderPost ...

func APIProductDelete

func APIProductDelete(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIProductDelete ...

func APIProductGet

func APIProductGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIProductGet ...

func APIProductPatch

func APIProductPatch(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIProductPatch ...

func APIProductPost

func APIProductPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIProductPost ...

func APIPromocodeDelete

func APIPromocodeDelete(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIPromocodeDelete ...

func APIPromocodeGet

func APIPromocodeGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIPromocodeGet ...

func APIPromocodePatch

func APIPromocodePatch(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIPromocodePatch ...

func APIPromocodePost

func APIPromocodePost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIPromocodePost ...

func APIUserDelete

func APIUserDelete(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIUserDelete ...

func APIUserGet

func APIUserGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIUserGet ...

func APIUserPatch

func APIUserPatch(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIUserPatch ...

func APIUserPost

func APIUserPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

APIUserPost ...

func AdminGet

func AdminGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

AdminGet ...

func AdminListing

func AdminListing(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

AdminListing ...

func AdminListingLast

func AdminListingLast(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

AdminListingLast ...

func AdminNew

func AdminNew(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

AdminNew ...

func AdminRedirect

func AdminRedirect(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

AdminRedirect ...

func CartGet

func CartGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CartGet ...

func CartItemDelete

func CartItemDelete(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CartItemDelete ...

func CartItemPost

func CartItemPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CartItemPost ...

func CheckoutConfirmGet

func CheckoutConfirmGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CheckoutConfirmGet ...

func CheckoutGet

func CheckoutGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CheckoutGet ...

func CheckoutPost

func CheckoutPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

CheckoutPost ...

func DeactivateGet

func DeactivateGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

DeactivateGet ...

func DeactivatePost

func DeactivatePost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

DeactivatePost ...

func Inject

func Inject(h FestHandler, c *shopy.Config) http.HandlerFunc

Inject ...

func LoginGet

func LoginGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

LoginGet ...

func LoginPost

func LoginPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

LoginPost ...

func OrderCancel

func OrderCancel(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

OrderCancel ...

func OrdersGet

func OrdersGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

OrdersGet ...

func Redirect

func Redirect(w http.ResponseWriter, r *http.Request, path string) (int, error)

Redirect redirects the user to a page

func RegisterGet

func RegisterGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

RegisterGet ...

func RegisterPost

func RegisterPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

RegisterPost ...

func Render

func Render(w http.ResponseWriter, c *shopy.Config, s *shopy.Session, data interface{}, templates ...string) (int, error)

Render renders an HTML response and send it to the client based on the chosen templates

func ResetGet

func ResetGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

ResetGet ...

func ResetPost

func ResetPost(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

ResetPost ...

func Serve

func Serve(c *shopy.Config)

Serve ... TODO: definately move this function to CMD

func SettingsGet

func SettingsGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

SettingsGet ...

func StoreGet

func StoreGet(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

StoreGet ...

Types

type FestHandler

type FestHandler func(w http.ResponseWriter, r *http.Request, c *shopy.Config) (int, error)

FestHandler ...

func MustAdmin

func MustAdmin(h FestHandler) FestHandler

MustAdmin ...

func MustLogin

func MustLogin(h FestHandler) FestHandler

MustLogin ...

func StaticHandler

func StaticHandler(templates ...string) FestHandler

StaticHandler ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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