Documentation
¶
Index ¶
Constants ¶
View Source
const (
FormDataMaxMemory = 256 << 20 // 256 MB
)
Variables ¶
This section is empty.
Functions ¶
func NewPathItem ¶ added in v1.6.19
NewPathItem creates a new path item with the given summary, description and tags.
Types ¶
type PathItem ¶ added in v1.6.19
type PathItem interface {
// Handler returns the http.HandlerFunc that handles the PathItem
Handler() http.HandlerFunc
// Spec returns the openapi.PathItem for a path with optional path parameters
Spec(string, *jsonschema.Schema) *openapi.PathItem
// WrapHandler wraps the handler for a specific HTTP method with middleware.
// The method should be an uppercase HTTP method name (GET, POST, etc.).
// If no handler is registered for the method, the call is a no-op.
WrapHandler(method string, fn func(http.HandlerFunc) http.HandlerFunc)
}
Click to show internal directories.
Click to hide internal directories.