Documentation ¶
Overview ¶
Package amiswagger
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOpenApi ¶
func StructDetail ¶
func StructDetail(str interface{})
Types ¶
type Authorization ¶
type Authorization struct {
Authorization string `header:"Authorization"`
}
type Handler ¶
type Handler struct { api.Handler Summary string Request interface{} Response []OpenApiResponse Authorization *string `json:"authorization"` }
func NewOpenApiHandler ¶
func NewOpenApiHandler(handler api.Handler, summary string, req interface{}, resp []OpenApiResponse) Handler
type OpenApiResponse ¶
type OpenApiResponse struct { Code int Output interface{} }
type ResponseData ¶
type ResponseDataList ¶
Click to show internal directories.
Click to hide internal directories.