Documentation ¶
Index ¶
- func GoCamelCase(s string) string
- type Entity
- type Field
- type Project
- func (p Project) AbsolutePath() string
- func (p Project) CheckDirectoryNotPresent()
- func (p Project) CompileProtobuf()
- func (p Project) ConfigEnvVariable() string
- func (p Project) CreateDirectories()
- func (p Project) GenerateBinScripts(path string)
- func (p Project) GenerateConfigFiles(path string)
- func (p Project) GenerateGoFiles(path string)
- func (p Project) GenerateLauncher(path string)
- func (p Project) GenerateProto(path string)
- func (p Project) GenerateSQLMigrations(path string)
- func (p Project) PrintOutro()
- func (p Project) ProtoCapsName() string
- func (p Project) RunGoModInit()
- func (p Project) RunGoModTidy()
- func (p Project) Validate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoCamelCase ¶
GoCamelCase camel-cases a protobuf name for use as a Go identifier.
If there is an interior underscore followed by a lower case letter, drop the underscore and convert the letter to upper case.
Types ¶
type Entity ¶
type Entity struct { Name string `yaml:"name"` Fields []Field `yaml:"fields"` SQLTableOverride string `yaml:"sql_table_name"` }
func (Entity) FieldsForInsert ¶
func (Entity) NonPrimaryKeyFields ¶
func (Entity) PrimaryKeyField ¶
func (Entity) ProtoCapsName ¶
func (Entity) SQLTableName ¶
type Field ¶
type Project ¶
type Project struct { Name string `yaml:"name"` Entities []Entity `yaml:"entities"` GoImportPath string `yaml:"go_import_path"` OverrideConfigEnvVar string `yaml:"config_env_var"` }
func ProjectFromYAMLString ¶
func (Project) AbsolutePath ¶
func (Project) CheckDirectoryNotPresent ¶
func (p Project) CheckDirectoryNotPresent()
func (Project) CompileProtobuf ¶
func (p Project) CompileProtobuf()
func (Project) ConfigEnvVariable ¶
func (Project) CreateDirectories ¶
func (p Project) CreateDirectories()
func (Project) GenerateBinScripts ¶
func (Project) GenerateConfigFiles ¶
func (Project) GenerateGoFiles ¶
func (Project) GenerateLauncher ¶
func (Project) GenerateProto ¶
func (Project) GenerateSQLMigrations ¶
func (Project) PrintOutro ¶
func (p Project) PrintOutro()
func (Project) ProtoCapsName ¶
func (Project) RunGoModInit ¶
func (p Project) RunGoModInit()
func (Project) RunGoModTidy ¶
func (p Project) RunGoModTidy()
Click to show internal directories.
Click to hide internal directories.