generators

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GO_ASSETS_CONFIG_FILE_NAME = "configs.go"
View Source
const GO_MOD_FILE_NAME = "go.mod"
View Source
const GRAPH_FILENAME = "graph.wsd"
View Source
const MAIN_FILE_NAME = "main._go"

Variables

This section is empty.

Functions

This section is empty.

Types

type GenAssetsConfig

type GenAssetsConfig struct {
	// contains filtered or unexported fields
}

func (*GenAssetsConfig) GetFileName

func (g *GenAssetsConfig) GetFileName() string

GetFileName implements Generator.

func (*GenAssetsConfig) GetFullPath

func (g *GenAssetsConfig) GetFullPath() string

GetFullPath implements Generator.

func (*GenAssetsConfig) RenderToFile

func (g *GenAssetsConfig) RenderToFile() error

type GenGoMod

type GenGoMod struct {
	// contains filtered or unexported fields
}

func (*GenGoMod) GetFileName

func (g *GenGoMod) GetFileName() string

GetFileName implements Generator.

func (*GenGoMod) GetFullPath

func (g *GenGoMod) GetFullPath() string

GetFullPath implements Generator.

func (*GenGoMod) RenderToFile

func (g *GenGoMod) RenderToFile() error

type GenGraph

type GenGraph struct {
	// contains filtered or unexported fields
}

func (*GenGraph) GetFileName

func (g *GenGraph) GetFileName() string

GetFileName implements Generator.

func (*GenGraph) GetFullPath

func (g *GenGraph) GetFullPath() string

GetFullPath implements Generator.

func (*GenGraph) RenderToFile

func (g *GenGraph) RenderToFile() error

type GenMain

type GenMain struct {
	// contains filtered or unexported fields
}

func (*GenMain) GetFileName

func (g *GenMain) GetFileName() string

GetFileName implements Generator.

func (*GenMain) GetFullPath

func (g *GenMain) GetFullPath() string

GetFullPath implements Generator.

func (*GenMain) RenderToFile

func (g *GenMain) RenderToFile() error

type GenSQLModelAsset

type GenSQLModelAsset struct {
	// contains filtered or unexported fields
}

func (*GenSQLModelAsset) GetFileName

func (g *GenSQLModelAsset) GetFileName() string

GetFileName implements Generator.

func (*GenSQLModelAsset) GetFullPath

func (g *GenSQLModelAsset) GetFullPath() string

GetFullPath implements Generator.

func (*GenSQLModelAsset) RenderToFile

func (g *GenSQLModelAsset) RenderToFile() error

type Generator

type Generator interface {
	RenderToFile() error
	GetFileName() string
	GetFullPath() string
}

func InitGenAssetsConfig

func InitGenAssetsConfig(
	config *configs.Config,
	profile *configs.Profile,
	modelsConfig []*internalmodels.ModelConfig,
	priorityGroups [][]string,
) Generator

func InitGenGoMod

func InitGenGoMod(config *configs.Config, profile *configs.Profile) Generator

func InitGenGraph

func InitGenGraph(config *configs.Config, profile *configs.Profile, modelsConfigs []*internalmodels.ModelConfig) Generator

func InitGenMain

func InitGenMain(config *configs.Config, profile *configs.Profile) Generator

func InitGenModelAsset

func InitGenModelAsset(
	config *configs.Config,
	profile *configs.Profile,
	modelConfig *internalmodels.ModelConfig,

) Generator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL