test

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 ValidateAgainstCapacitySchema

func ValidateAgainstCapacitySchema(bb []byte) error

ValidateAgainstCapacitySchema validates a message coming from the client against Capacity schema.

func ValidateAgainstTestObjectSchema

func ValidateAgainstTestObjectSchema(bb []byte) error

ValidateAgainstTestObjectSchema validates a message coming from the client against TestObject schema.

func WrapTestMe

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

WrapTestMe wraps the path `/products` with the method "get".

Path description: is a test endpoint.

Types

type Capacity

type Capacity int32

Capacity is an identifiable primitive definition.

type Handler

type Handler interface {
	// TestMe handles the path `/products` with the method "get".
	//
	// Path description:
	// is a test endpoint.
	TestMe(w http.ResponseWriter,
		r *http.Request,
		testObject TestObject)
}

Handler defines an interface to handling the routes.

type TestObject

type TestObject struct {
	// is a test string property.
	ProductID *string `json:"product_id,omitempty"`

	Capacity *Capacity `json:"capacity,omitempty"`
}

TestObject is a test object.

Jump to

Keyboard shortcuts

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