 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var LoaderFactories = map[string]func() LoaderParams{ new(MongoLoader).Name(): func() LoaderParams { return new(MongoLoader) }, new(PostgresLoader).Name(): func() LoaderParams { return new(PostgresLoader) }, }
Functions ¶
This section is empty.
Types ¶
type FormatError ¶
func (FormatError) Error ¶
func (e FormatError) Error() string
type Imports ¶
type Imports []StructImport
func (Imports) At ¶
func (i Imports) At(p StructParam) string
type LoaderParams ¶
type LoaderParams interface {
	Name() string
	Process() ([]StructMetadata, error)
}
    type Loaders ¶
type Loaders []LoaderParams
func (*Loaders) MarshalYAML ¶
func (*Loaders) UnmarshalYAML ¶
type MongoLoader ¶
type MongoLoader struct {
	Host string `yaml:"host"`
}
    func (*MongoLoader) Name ¶
func (*MongoLoader) Name() string
func (*MongoLoader) Process ¶
func (*MongoLoader) Process() (result []StructMetadata, err error)
type PostgresLoader ¶
func (*PostgresLoader) Name ¶
func (*PostgresLoader) Name() string
func (*PostgresLoader) Process ¶
func (l *PostgresLoader) Process() (result []StructMetadata, err error)
type Project ¶
type Project struct {
	Structs []StructMetadata
}
    type ProjectLoader ¶
type ProjectLoader struct {
	// contains filtered or unexported fields
}
    func NewProjectLoader ¶
func NewProjectLoader(projectName, projectID, pkgName, wd string) *ProjectLoader
type StructImport ¶
type StructImport struct {
	Pkg   string
	Param StructParam
}
    type StructMetadata ¶
type StructMetadata struct {
	Name, LowerName string
	Primary         StructParam
	Params          []StructParam
	Imports         Imports
}
     Click to show internal directories. 
   Click to hide internal directories.