Documentation ¶
Overview ¶
Package gencontroller generates the controller code for a given design resource. This generator is intended for use when resources are added to the design after the initial bootstrapping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { API *design.APIDefinition // The API definition OutDir string // Path to output directory DesignPkg string // Path to design package, only used to mark generated files. AppPkg string // Name of generated "app" package Force bool // Whether to override existing files Regen bool // Whether to regenerate scaffolding in place, retaining controller impls Pkg string // Name of the generated package Resource string // Name of the generated file // contains filtered or unexported fields }
Generator is the application code generator.
func NewGenerator ¶
NewGenerator returns an initialized instance of a JavaScript Client Generator
Click to show internal directories.
Click to hide internal directories.