server

package
v0.0.0-...-1102c04 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InternalServerError

func InternalServerError(err error) string

func InvalidBodyError

func InvalidBodyError(err error) string

func NotFoundPaymentError

func NotFoundPaymentError(err error) string

Types

type PaymentServer

type PaymentServer struct {
	http.Handler
	// contains filtered or unexported fields
}

func NewPaymentServer

func NewPaymentServer(cashDesk cashdesk.CashDesk) *PaymentServer

func (*PaymentServer) GetPayment

func (p *PaymentServer) GetPayment(w http.ResponseWriter, r *http.Request)

func (*PaymentServer) GetPayments

func (p *PaymentServer) GetPayments(w http.ResponseWriter, r *http.Request)

func (*PaymentServer) PostPayment

func (p *PaymentServer) PostPayment(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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