product

package
v5.0.2+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Code generated by swagger_to. DO NOT EDIT.

Code generated by swagger_to. DO NOT EDIT.

Code generated by swagger_to. DO NOT EDIT.

Code generated by swagger_to. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(h Handler) *mux.Router

SetupRouter sets up a router. If you don't use any middleware, you are good to go. Otherwise, you need to maually re-implement this function with your middlewares.

func ValidateAgainstEmptyParameterSchema

func ValidateAgainstEmptyParameterSchema(bb []byte) error

ValidateAgainstEmptyParameterSchema validates a message coming from the client against EmptyParameter schema.

func ValidateAgainstWithEmptyPropertiesSchema

func ValidateAgainstWithEmptyPropertiesSchema(bb []byte) error

ValidateAgainstWithEmptyPropertiesSchema validates a message coming from the client against WithEmptyProperties schema.

func WrapTestEndpoint

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

WrapTestEndpoint wraps the path `/test_endpoint` with the method "get".

Path description: test empty schema

Types

type EmptyParameter

type EmptyParameter struct{}

EmptyParameter defines an empty parameter.

type Handler

type Handler interface {
	// TestEndpoint handles the path `/test_endpoint` with the method "get".
	//
	// Path description:
	// test empty schema
	TestEndpoint(w http.ResponseWriter,
		r *http.Request,
		requiredEmptyParameter EmptyParameter)
}

Handler defines an interface to handling the routes.

type WithEmptyProperties

type WithEmptyProperties struct {
	RequiredEmptyProperty interface{} `json:"required_empty_property"`

	OptionalEmptyProperty interface{} `json:"optional_empty_property,omitempty"`
}

WithEmptyProperties is a product detail.

Jump to

Keyboard shortcuts

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