simple

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by github.com/pace/bricks DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestHandler

func GetTestHandler(service GetTestHandlerService) http.Handler

GetTestHandler handles request/response marshaling and validation for

Get /beta/test

func GetTestHandlerWithFallbackHelper added in v0.1.100

func GetTestHandlerWithFallbackHelper(service interface{}, fallback http.Handler) http.Handler

GetTestHandlerWithFallbackHelper helper that checks if the given service fulfills the interface. Returns fallback handler if not, otherwise returns matching handler.

func Router

func Router(service interface{}) *mux.Router

Router implements: PACE Payment API

Welcome to the PACE Payment API documentation. This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services.

func RouterWithFallback added in v0.1.100

func RouterWithFallback(service interface{}, fallback http.Handler) *mux.Router

Router implements: PACE Payment API

Welcome to the PACE Payment API documentation. This API is responsible for managing payment methods for users as well as authorizing payments on behalf of PACE services.

Types

type GetTestHandlerService added in v0.1.100

type GetTestHandlerService interface {
	// GetTest Test
	GetTest(context.Context, GetTestResponseWriter, *GetTestRequest) error
}

Service interface for GetTestHandler handler

type GetTestRequest

type GetTestRequest struct {
	Request *http.Request `valid:"-"`
}

GetTestRequest is a standard http.Request extended with the un-marshaled content object

type GetTestResponseWriter

type GetTestResponseWriter interface {
	http.ResponseWriter
	OK()
}

GetTestResponseWriter is a standard http.ResponseWriter extended with methods to generate the respective responses easily

type Service

type Service interface {
	GetTestHandlerService
}

Legacy Interface. Use this if you want to fully implement a service.

Jump to

Keyboard shortcuts

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