Documentation
¶
Index ¶
- func Delete[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func Get[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func Head[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func NewHTTPError(status int, detail string) error
- func Options[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func Patch[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func Post[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- func Put[In any, Out any](router Router, path string, handler Handler[In, Out], opts ...OperationOption)
- type App
- type Attachment
- type Config
- type Dependency
- type DependencyResolver
- type FieldError
- type File
- type Group
- type HTML
- type HTTPError
- type Handler
- type Middleware
- type NoContent
- type Operation
- type OperationOption
- func Description(description string) OperationOption
- func OperationID(id string) OperationOption
- func Require(dependencies ...DependencyResolver) OperationOption
- func Security(names ...string) OperationOption
- func Status(status int) OperationOption
- func Summary(summary string) OperationOption
- func Tags(tags ...string) OperationOption
- func Use(middlewares ...Middleware) OperationOption
- type Problem
- type Redirect
- type Response
- type Router
- type SSE
- type SSEEvent
- type SecurityScheme
- type Stream
- type Text
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPError ¶
Types ¶
type Attachment ¶
type Attachment = core.Attachment
type Dependency ¶
type Dependency[T any] = core.Dependency[T]
func APIKeyHeaderDep ¶
func APIKeyHeaderDep(name, header string) Dependency[string]
func APIKeyQueryDep ¶
func APIKeyQueryDep(name, query string) Dependency[string]
func BearerTokenDep ¶
func BearerTokenDep(name string) Dependency[string]
type DependencyResolver ¶
type DependencyResolver = core.DependencyResolver
type FieldError ¶
type FieldError = core.FieldError
type Middleware ¶
type Middleware = core.Middleware
type OperationOption ¶
type OperationOption = core.OperationOption
func Description ¶
func Description(description string) OperationOption
func OperationID ¶
func OperationID(id string) OperationOption
func Require ¶
func Require(dependencies ...DependencyResolver) OperationOption
func Security ¶
func Security(names ...string) OperationOption
func Status ¶
func Status(status int) OperationOption
func Summary ¶
func Summary(summary string) OperationOption
func Tags ¶
func Tags(tags ...string) OperationOption
func Use ¶
func Use(middlewares ...Middleware) OperationOption
type SecurityScheme ¶
type SecurityScheme = core.SecurityScheme
func APIKeyCookie ¶
func APIKeyCookie(name, cookie string) SecurityScheme
func APIKeyHeader ¶
func APIKeyHeader(name, header string) SecurityScheme
func APIKeyQuery ¶
func APIKeyQuery(name, query string) SecurityScheme
func BasicAuth ¶
func BasicAuth(name string) SecurityScheme
func BearerAuth ¶
func BearerAuth(name string) SecurityScheme
Click to show internal directories.
Click to hide internal directories.