foo

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: 5 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 ValidateAgainstMyTypeSchema

func ValidateAgainstMyTypeSchema(bb []byte) error

ValidateAgainstMyTypeSchema validates a message coming from the client against MyType schema.

func WrapGetFoo

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

WrapGetFoo wraps the path `/` with the method "get".

Types

type Handler

type Handler interface {
	// GetFoo handles the path `/` with the method "get".
	GetFoo(w http.ResponseWriter,
		r *http.Request)
}

Handler defines an interface to handling the routes.

type MyType

type MyType struct {
	Prop *int `json:"prop,omitempty"`
}

Jump to

Keyboard shortcuts

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