Documentation
¶
Index ¶
- func RegenerateResourcesIndex(projectRoot string) error
- func RegenerateSchemasIndex(projectRoot string) error
- func TestExtractModuleName_InvalidGoMod(t *testing.T)
- func TestExtractModuleName_NoModule(t *testing.T)
- func TestExtractModuleName_WithModule(t *testing.T)
- func TestHandlerGenerator_ExecuteTemplate_Error(t *testing.T)
- func TestHandlerGenerator_GenerateRawHandler(t *testing.T)
- func TestHandlerGenerator_UnsupportedType(t *testing.T)
- func TestHandlerGenerator_UpdateRegistry_AlreadyRegistered(t *testing.T)
- func TestHandlerGenerator_UpdateRegistry_NoRegistry(t *testing.T)
- type HandlerGenerator
- type Scaffolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegenerateResourcesIndex ¶
RegenerateResourcesIndex scans the api/resources directory and regenerates _index.yml
func RegenerateSchemasIndex ¶
RegenerateSchemasIndex scans the api/schemas directory and regenerates _index.yml
Types ¶
type HandlerGenerator ¶
type HandlerGenerator struct {
// contains filtered or unexported fields
}
func NewHandlerGenerator ¶
func NewHandlerGenerator(projectRoot, handlerName, handlerType, consume, publish string) *HandlerGenerator
func (*HandlerGenerator) Generate ¶
func (g *HandlerGenerator) Generate() error
type Scaffolder ¶
type Scaffolder struct {
// contains filtered or unexported fields
}
func NewScaffolder ¶
func NewScaffolder(projectPath, projectName, transport string, withExamples, withSimulator, metricsEnabled, webUIEnabled, withAPIWeaver, withInfraEndpoints, withDatabase, withOTEL bool) *Scaffolder
func (*Scaffolder) Scaffold ¶
func (s *Scaffolder) Scaffold() error
Click to show internal directories.
Click to hide internal directories.