Documentation ¶
Index ¶
- Constants
- func FindCMDPkgs(n ast.Node) []*ast.Pkg
- func WithPkg(n ast.Node, f func(pkg Pkg) error) error
- type Docs
- type Field
- func (c Field) EnvironmentVariable() (string, bool)
- func (c Field) IsProgramFlag() bool
- func (c Field) ProgramFlagVariable() (string, bool)
- func (c Field) SQLColumnName() (string, bool)
- func (c Field) SetEnvironmentVariable(environmentVariable string)
- func (c Field) SetProgramFlag(b bool)
- func (c Field) SetProgramFlagVariable(flagVariable string)
- func (c Field) SetSQLColumnName(tableName string) Field
- func (c Field) Unwrap() *ast.Field
- type Mod
- type Pkg
- type Struct
- func (s Struct) IsConfiguration() bool
- func (s Struct) IsDatabaseConfiguration() bool
- func (s Struct) IsService() bool
- func (s Struct) MySQLRelated() bool
- func (s Struct) SQLDefaultOrder() (string, bool)
- func (s Struct) SQLTableName() (string, bool)
- func (s Struct) SetIsConfiguration(isPublicConfig bool) Struct
- func (s Struct) SetIsDatabaseConfiguration(isDbConfig bool) Struct
- func (s Struct) SetIsService(isPublicConfig bool) Struct
- func (s Struct) SetMySQLRelated(isDbConfig bool) Struct
- func (s Struct) SetSQLDefaultOrder(orderBy string) Struct
- func (s Struct) SetSQLTableName(tableName string) Struct
Constants ¶
const (
DocDevelop = "getting-started/development.md"
)
Variables ¶
This section is empty.
Functions ¶
func FindCMDPkgs ¶
FindCMDPkgs returns all annotated CMDPkg.
Types ¶
type Docs ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field contains all stereotype annotations for single field instances.
func (Field) EnvironmentVariable ¶
EnvironmentVariable extracts the environment variable.
func (Field) IsProgramFlag ¶
IsProgramFlag returns true if this field is a command line flag candidate.
func (Field) ProgramFlagVariable ¶
ProgramFlagVariable extracts the program flag variable.
func (Field) SQLColumnName ¶
SQLColumnName extracts the sql column name.
func (Field) SetEnvironmentVariable ¶
SetEnvironmentVariable connects the given field with a specific name from the environment variable.
func (Field) SetProgramFlag ¶
SetProgramFlag marks this field as a command line flag candidate.
func (Field) SetProgramFlagVariable ¶
SetProgramFlagVariable connects the given field with a specific name from the program flag variable.
func (Field) SetSQLColumnName ¶
SetSQLColumnName sets an sql column name.
type Mod ¶
type Mod struct {
// contains filtered or unexported fields
}
Mod contains all stereotype annotations for a module instance.
func (Mod) ProjectIdent ¶
ProjectIdent returns a unique identifier for the module or the empty string.
func (Mod) SetProjectIdent ¶
type Pkg ¶
type Pkg struct {
// contains filtered or unexported fields
}
Pkg contains all stereotype annotations for a package instance.
func (Pkg) FindStructs ¶
FindStructs applies the predicate on each contained struct. However, only non-raw types can be inspected.
func (Pkg) SetIsCMDPkg ¶
SetIsCMDPkg marks this package a main package.
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func StructFrom ¶
func (Struct) IsConfiguration ¶
IsConfiguration returns only true, if this struct shall be used as a configurational object.
func (Struct) IsDatabaseConfiguration ¶
IsDatabaseConfiguration returns only true, if this struct shall be used as a configurational object.
func (Struct) IsService ¶
IsService returns only true, if this struct shall be used as a service object.
func (Struct) MySQLRelated ¶
MySQLRelated returns only true, if this struct is mysql related.
func (Struct) SQLDefaultOrder ¶
SQLDefaultOrder extracts the sql entity default order.
func (Struct) SQLTableName ¶
SQLTableName extracts the sql table name.
func (Struct) SetIsConfiguration ¶
SetIsConfiguration marks this struct as a public configuration object. It provides environmental and program flags.
func (Struct) SetIsDatabaseConfiguration ¶
SetIsDatabaseConfiguration marks this struct as a public configuration object. It provides environmental and program flags.
func (Struct) SetIsService ¶
SetIsService marks this struct as a public service component.
func (Struct) SetMySQLRelated ¶
SetMySQLRelated marks this struct as mysql related.
func (Struct) SetSQLDefaultOrder ¶
SetSQLDefaultOrder declares a default sort order. E.g. ORDER BY col1 ASC, col2 DESC
func (Struct) SetSQLTableName ¶
SetSQLTableName sets an sql table name