Documentation
¶
Index ¶
- type Api
- type Body
- type Contact
- type ContentType
- type Cookie
- type CookieField
- type ExternalDocumentation
- type Group
- type Header
- type HeaderField
- type Info
- type License
- type OpenApi
- type Parameter
- type Path
- type PathParam
- type Query
- type QueryParam
- type Responses
- type Static
- type Tag
- type TypescriptApi
- type Use
- type Web
- func (web *Web) Api(route Api)
- func (web *Web) Contact(contact Contact)
- func (web *Web) ExternalDocumentation(externalDocumentation ExternalDocumentation)
- func (web *Web) Group(group func(Group))
- func (web *Web) Info(info Info)
- func (web *Web) License(license License)
- func (web *Web) OpenApi(openapi OpenApi)
- func (web *Web) Server() http.Handler
- func (web *Web) Static(static Static)
- func (web *Web) Tag(tag Tag)
- func (web *Web) TypescriptApi(typescriptApi TypescriptApi)
- func (web *Web) Use(use Use)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type ContentType struct {
ApplicationJson any
ApplicationXml any
ApplicationXWWWFormURLEncoded any
ApplicationJavaScript any
ApplicationPdf any
ApplicationZip any
TextHtml any
TextPlain any
TextCss any
TextCsv any
TextJavaScript any
ImageJpeg any
ImagePng any
ImageGif any
ImageSvgXml any
ImageWebp any
AudioMpeg any
AudioOgg any
AudioWav any
VideoMp4 any
VideoMpeg any
VideoOgg any
MultipartFormData any
}
type Cookie ¶
type Cookie map[string]CookieField
type CookieField ¶
type ExternalDocumentation ¶
type Header ¶
type Header map[string]HeaderField
type HeaderField ¶
type Query ¶
type Query map[string]QueryParam
type QueryParam ¶
type Responses ¶
type Responses struct {
Default any
// All status codes can be found at http/status.go
StatusContinue any
StatusSwitchingProtocols any
StatusProcessing any
StatusEarlyHints any
StatusOK any
StatusCreated any
StatusAccepted any
StatusNonAuthoritativeInfo any
StatusNoContent any
StatusResetContent any
StatusPartialContent any
StatusMultiStatus any
StatusAlreadyReported any
StatusIMUsed any
StatusMultipleChoices any
StatusMovedPermanently any
StatusFound any
StatusSeeOther any
StatusNotModified any
StatusUseProxy any
StatusTemporaryRedirect any
StatusPermanentRedirect any
StatusBadRequest any
StatusPaymentRequired any
StatusForbidden any
StatusNotFound any
StatusMethodNotAllowed any
StatusNotAcceptable any
StatusProxyAuthRequired any
StatusRequestTimeout any
StatusConflict any
StatusGone any
StatusLengthRequired any
StatusPreconditionFailed any
StatusRequestEntityTooLarge any
StatusRequestURITooLong any
StatusUnsupportedMediaType any
StatusRequestedRangeNotSatisfiable any
StatusExpectationFailed any
StatusTeapot any
StatusMisdirectedRequest any
StatusUnprocessableEntity any
StatusLocked any
StatusFailedDependency any
StatusTooEarly any
StatusUpgradeRequired any
StatusPreconditionRequired any
StatusTooManyRequests any
StatusRequestHeaderFieldsTooLarge any
StatusInternalServerError any
StatusNotImplemented any
StatusBadGateway any
StatusGatewayTimeout any
StatusHTTPVersionNotSupported any
StatusVariantAlsoNegotiates any
StatusInsufficientStorage any
StatusLoopDetected any
StatusNotExtended any
StatusNetworkAuthenticationRequired any
}
type TypescriptApi ¶
type Web ¶
type Web struct {
// contains filtered or unexported fields
}
func (*Web) ExternalDocumentation ¶
func (web *Web) ExternalDocumentation(externalDocumentation ExternalDocumentation)
func (*Web) TypescriptApi ¶
func (web *Web) TypescriptApi(typescriptApi TypescriptApi)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.