Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwaggerGenerator ¶
type SwaggerGenerator struct { Blacklist []*regexp.Regexp Pkgs []*pkg.Pkg ModuleName string VendorFolders []string RootPath string GoPath string // contains filtered or unexported fields }
SwaggerGenerator is able to navigate a project's code
func NewSwaggerGenerator ¶
func NewSwaggerGenerator(rootPath, goPath string, vendorFolders []string, logger *log.Logger) (*SwaggerGenerator, error)
NewSwaggerGenerator creates a swagger generator that scans a whole project
func NewSwaggerGeneratorWithBlacklist ¶
func NewSwaggerGeneratorWithBlacklist(rootPath, goPath string, vendorFolders []string, logger *log.Logger, blacklist []*regexp.Regexp) (*SwaggerGenerator, error)
NewSwaggerGeneratorWithBlacklist creates a swagger generator that scans a whole project except for any matching a given blacklist
func (*SwaggerGenerator) GenerateSwaggerDoc ¶
func (s *SwaggerGenerator) GenerateSwaggerDoc(projectCriterias criteria.Criteria, swagger *openapi2.Swagger) error
GenerateSwaggerDoc generates the swagger documentation
Click to show internal directories.
Click to hide internal directories.