handlers

package
v0.0.0-...-25cbc4d Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package handlers ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressRequest

type AddressRequest struct {
	Invoice string `json:"invoice"`
	FFLID   string `json:"fflId"`
}

AddressRequest AddressRequest

type AddressResponse

type AddressResponse struct {
	Success bool `json:"success"`
}

AddressResponse AddressResponse

type FFLPageParams

type FFLPageParams struct {
	//FFLList *[]ffl.FFL
	//FFL     *ffl.FFL
	FFLList *[]flc.FlicList
	FFL     *flc.Flic
	Zip     string
	Name    string
	Address string
	NoFFL   bool
	Enabled string
}

FFLPageParams FFLPageParams

type FlicHandler

type FlicHandler struct {
	Templates    *template.Template
	DCartUserDel del.DCartUserDelegate
	Sess         usession.Session
	//FFLFinder    ffl.FFLFinder
	FlicFinder flc.Finder
	DcartAPI   api.DcartAPI
	Log        *lg.Logger
}

FlicHandler FlicHandler

func (*FlicHandler) GetNew

func (h *FlicHandler) GetNew() Handler

GetNew GetNew

func (*FlicHandler) HandleDcartCb

func (h *FlicHandler) HandleDcartCb(w http.ResponseWriter, r *http.Request)

HandleDcartCb HandleDcartCb

func (*FlicHandler) HandleDcartChooseFFL

func (h *FlicHandler) HandleDcartChooseFFL(w http.ResponseWriter, r *http.Request)

HandleDcartChooseFFL HandleDcartChooseFFL

func (*FlicHandler) HandleDcartConfig

func (h *FlicHandler) HandleDcartConfig(w http.ResponseWriter, r *http.Request)

HandleDcartConfig HandleDcartConfig

func (*FlicHandler) HandleDcartFindFFL

func (h *FlicHandler) HandleDcartFindFFL(w http.ResponseWriter, r *http.Request)

HandleDcartFindFFL HandleDcartFindFFL

func (*FlicHandler) HandleDcartIndex

func (h *FlicHandler) HandleDcartIndex(w http.ResponseWriter, r *http.Request)

HandleDcartIndex HandleDcartIndex

func (*FlicHandler) HandleDcartShipFFL

func (h *FlicHandler) HandleDcartShipFFL(w http.ResponseWriter, r *http.Request)

HandleDcartShipFFL HandleDcartShipFFL

func (*FlicHandler) HandleDcartShipFFLAddress

func (h *FlicHandler) HandleDcartShipFFLAddress(w http.ResponseWriter, r *http.Request)

HandleDcartShipFFLAddress HandleDcartShipFFLAddress

func (*FlicHandler) HandleFFLAddAddress

func (h *FlicHandler) HandleFFLAddAddress(w http.ResponseWriter, r *http.Request)

HandleFFLAddAddress HandleFFLAddAddress

func (*FlicHandler) HandleFFLGet

func (h *FlicHandler) HandleFFLGet(w http.ResponseWriter, r *http.Request)

HandleFFLGet HandleFFLGet

func (*FlicHandler) HandleFFLList

func (h *FlicHandler) HandleFFLList(w http.ResponseWriter, r *http.Request)

HandleFFLList HandleFFLList

func (*FlicHandler) HandleIndex

func (h *FlicHandler) HandleIndex(w http.ResponseWriter, r *http.Request)

HandleIndex HandleIndex

func (*FlicHandler) SetLogLevel

func (h *FlicHandler) SetLogLevel(w http.ResponseWriter, r *http.Request)

SetLogLevel SetLogLevel

type Handler

type Handler interface {
	HandleIndex(w http.ResponseWriter, r *http.Request)

	HandleDcartIndex(w http.ResponseWriter, r *http.Request)
	HandleDcartConfig(w http.ResponseWriter, r *http.Request)
	HandleDcartCb(w http.ResponseWriter, r *http.Request)

	HandleDcartFindFFL(w http.ResponseWriter, r *http.Request)
	HandleDcartChooseFFL(w http.ResponseWriter, r *http.Request)
	HandleDcartShipFFL(w http.ResponseWriter, r *http.Request)
	HandleDcartShipFFLAddress(w http.ResponseWriter, r *http.Request)

	// //REST handers
	HandleFFLList(w http.ResponseWriter, r *http.Request)
	HandleFFLGet(w http.ResponseWriter, r *http.Request)
	HandleFFLAddAddress(w http.ResponseWriter, r *http.Request)

	SetLogLevel(w http.ResponseWriter, r *http.Request)
}

Handler Handler

type LogLevel

type LogLevel struct {
	Level string `json:"logLevel"`
}

LogLevel LogLevel

type LogResponse

type LogResponse struct {
	Success  bool   `json:"success"`
	LogLevel string `json:"logLevel"`
}

LogResponse LogResponse

type PageParams

type PageParams struct {
	Order   string
	CartURL string
	URL     string
	Key     string
	Token   string
	Enabled string
}

PageParams PageParams

Jump to

Keyboard shortcuts

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