Documentation
¶
Index ¶
- func ConsensusVersion(content string) (uint64, error)
- func NewGenerator(opts *Options) (*genny.Generator, error)
- type Options
- func (opts Options) MigrationDir() string
- func (opts Options) MigrationFile() string
- func (opts Options) MigrationFunc() string
- func (opts Options) MigrationImportAlias() string
- func (opts Options) MigrationImportPath() string
- func (opts Options) MigrationVersion() string
- func (opts Options) ModuleFile() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsensusVersion ¶
ConsensusVersion returns the current module consensus version from module.go content.
Types ¶
type Options ¶
Options represents the options to scaffold a module migration.
func (Options) MigrationDir ¶
MigrationDir returns the path to the migration folder.
func (Options) MigrationFile ¶
MigrationFile returns the path to the migration source file.
func (Options) MigrationFunc ¶
MigrationFunc returns the migration handler function name.
func (Options) MigrationImportAlias ¶
MigrationImportAlias returns the import alias used by module.go.
func (Options) MigrationImportPath ¶
MigrationImportPath returns the migration import path used by module.go.
func (Options) MigrationVersion ¶
MigrationVersion returns the migration package name.
func (Options) ModuleFile ¶
ModuleFile returns the path to the module definition file.
Click to show internal directories.
Click to hide internal directories.