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 ¶
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 ¶
ValidateAgainstCapacitySchema validates a message coming from the client against Capacity schema.
func ValidateAgainstTestObjectSchema ¶
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 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.