Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveCommentSection ¶
Types ¶
type InputParameter ¶
type PathsHolder ¶
type RouteHolder ¶
type RouteHolder struct { Path []NameType Query []NameType Body NameType FormData []NameType Route string Methods []string Name string }
func GetInfoFromRouter ¶
func GetInfoFromRouter(r *mux.Router) (holders []RouteHolder, err error)
type RouteParser ¶
type SchemaParameters ¶
type SchemaParameters struct { Type string `json:"type"` Items *SchemaParameters `json:"items,omitempty"` Properties map[string]SchemaParameters `json:"properties,omitempty"` }
type SchemeHolder ¶
type SchemeHolder struct { Schemes []string `json:"schemes"` Host string `json:"host"` BasePath string `json:"basePath"` Paths PathsHolder `json:"paths"` SwaggerVersion string `json:"swagger"` }
func (*SchemeHolder) GenerateSwaggerFile ¶
func (s *SchemeHolder) GenerateSwaggerFile(routes []RouteHolder, filePath string) (err error)
Click to show internal directories.
Click to hide internal directories.