Documentation ¶
Index ¶
- func Generate(ctx context.Context, appPath, protoDir string, options ...Option) error
- func InstallDependencies(ctx context.Context, appPath string) error
- type Option
- func IncludeDirs(dirs []string) Option
- func WithDartGeneration(includeThirdPartyModules bool, out func(module.Module) (path string), ...) Option
- func WithGoGeneration(gomodPath string) Option
- func WithJSGeneration(includeThirdPartyModules bool, out func(module.Module) (path string)) Option
- func WithOpenAPIGeneration(out string) Option
- func WithVuexGeneration(includeThirdPartyModules bool, out func(module.Module) (path string), ...) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*generateOptions)
Option configures code generation.
func IncludeDirs ¶
IncludeDirs configures the third party proto dirs that used by app's proto. relative to the projectPath.
func WithDartGeneration ¶
func WithGoGeneration ¶
WithGoGeneration adds Go code generation.
func WithJSGeneration ¶
WithJSGeneration adds JS code generation. out hook is called for each module to retrieve the path that should be used to place generated js code inside for a given module. if includeThirdPartyModules set to true, code generation will be made for the 3rd party modules used by the app -including the SDK- as well.
func WithOpenAPIGeneration ¶
WithOpenAPIGeneration adds OpenAPI spec generation.
func WithVuexGeneration ¶
func WithVuexGeneration(includeThirdPartyModules bool, out func(module.Module) (path string), storeRootPath string) Option
WithVuexGeneration adds Vuex code generation. storeRootPath is used to determine the root path of generated Vuex stores. includeThirdPartyModules and out configures the underlying JS lib generation which is documented in WithJSGeneration.