web

package
v0.0.0-...-b3f3fbb Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2015 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package web provides the web service through which the end user will interact with payments.

Index

Constants

View Source
const (
	PaymentCookieName    = "payment"
	PaymentAuthPaymentID = "paymentID"
)
View Source
const Debug = false

Debug flag whether debugging is turned on

View Source
const (
	PaymentPath = "/payment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ctx *service.Context) (*Handler, error)

func (*Handler) PaymentHandler

func (h *Handler) PaymentHandler() http.Handler

func (*Handler) SelectPaymentMethodHandler

func (h *Handler) SelectPaymentMethodHandler(p *payment.Payment) http.Handler

func (*Handler) ServeHTTP

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

type ResponseWriter

type ResponseWriter struct {
	// contains filtered or unexported fields
}

func (*ResponseWriter) Header

func (r *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (r *ResponseWriter) Write(b []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (r *ResponseWriter) WriteHeader(s int)

Jump to

Keyboard shortcuts

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