http

package
v0.0.0-...-e510c16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Links struct {
	Self string `json:"self"`
}

Links links info for response

type ListResponse

type ListResponse struct {
	Data  []app.Payment `json:"data"`
	Links Links         `json:"links"`
}

ListResponse for collections of payments

type PaymentResponse

type PaymentResponse struct {
	Data  app.Payment
	Links Links `json:"links"`
}

PaymentResponse http payment response

type QueryHandler

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

QueryHandler handler

func NewHandler

func NewHandler(logger logrus.FieldLogger, service app.Service) *QueryHandler

NewHandler returns new QueryHandler

func (*QueryHandler) Get

Get handler

func (*QueryHandler) List

func (h *QueryHandler) List(w http.ResponseWriter, r *http.Request)

List handler

Jump to

Keyboard shortcuts

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