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 ¶ added in v1.25.4
func (FormatError) Error ¶ added in v1.25.4
func (e FormatError) Error() string
type Imports ¶ added in v1.24.5
type Imports []StructImport
func (Imports) At ¶ added in v1.24.5
func (i Imports) At(p StructParam) string
type LoaderParams ¶ added in v1.24.5
type LoaderParams interface { Name() string Process() ([]StructMetadata, error) }
type Loaders ¶ added in v1.24.7
type Loaders []LoaderParams
func (*Loaders) MarshalYAML ¶ added in v1.24.7
func (*Loaders) UnmarshalYAML ¶ added in v1.24.7
type MongoLoader ¶ added in v1.24.5
type MongoLoader struct {
Host string `yaml:"host"`
}
func (*MongoLoader) Name ¶ added in v1.24.5
func (*MongoLoader) Name() string
func (*MongoLoader) Process ¶ added in v1.24.5
func (*MongoLoader) Process() (result []StructMetadata, err error)
type PostgresLoader ¶ added in v1.24.5
func (*PostgresLoader) Name ¶ added in v1.24.5
func (*PostgresLoader) Name() string
func (*PostgresLoader) Process ¶ added in v1.24.5
func (l *PostgresLoader) Process() (result []StructMetadata, err error)
type Project ¶ added in v1.24.5
type Project struct {
Structs []StructMetadata
}
type ProjectLoader ¶ added in v1.24.5
type ProjectLoader struct {
// contains filtered or unexported fields
}
func NewProjectLoader ¶ added in v1.24.5
func NewProjectLoader(projectName, projectID, pkgName, wd string) *ProjectLoader
type StructImport ¶ added in v1.24.5
type StructImport struct { Pkg string Param StructParam }
type StructMetadata ¶ added in v1.24.5
type StructMetadata struct {
Name, LowerName string
Primary StructParam
Params []StructParam
Imports Imports
}
Click to show internal directories.
Click to hide internal directories.