Documentation
¶
Index ¶
- func DepTools() []string
- func Generate(ctx context.Context, cacheStorage cache.Storage, appPath, protoDir string, ...) error
- func InstallDepTools(ctx context.Context, appPath string) error
- type ModulePathFunc
- type ModulesInPath
- type Option
- func IncludeDirs(dirs []string) Option
- func WithDartGeneration(includeThirdPartyModules bool, out ModulePathFunc, rootPath string) Option
- func WithGoGeneration(gomodPath string) Option
- func WithOpenAPIGeneration(out string) Option
- func WithTSClientGeneration(out ModulePathFunc, tsClientRootPath string) Option
- func WithVuexGeneration(includeThirdPartyModules bool, out ModulePathFunc, vuexRootPath string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModulePathFunc ¶
ModulePathFunc defines a function type that returns a path based on a Cosmos SDK module.
func TypescriptModulePath ¶ added in v0.24.0
func TypescriptModulePath(rootPath string) ModulePathFunc
TypescriptModulePath generates module paths for Cosmos SDK modules. The root path is used as prefix for the generated paths.
type ModulesInPath ¶
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 WithDartGeneration(includeThirdPartyModules bool, out ModulePathFunc, rootPath string) Option
func WithGoGeneration ¶
WithGoGeneration adds Go code generation.
func WithOpenAPIGeneration ¶
WithOpenAPIGeneration adds OpenAPI spec generation.
func WithTSClientGeneration ¶ added in v0.24.0
func WithTSClientGeneration(out ModulePathFunc, tsClientRootPath string) Option
WithTSClientGeneration adds Typescript Client code generation. The tsClientRootPath is used to determine the root path of generated Typescript classes.
func WithVuexGeneration ¶
func WithVuexGeneration(includeThirdPartyModules bool, out ModulePathFunc, vuexRootPath string) Option
Click to show internal directories.
Click to hide internal directories.