creator

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreator

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

func NewBatchCreator

func NewBatchCreator(files ...FileCreator) *BatchCreator

func (*BatchCreator) Create

func (p *BatchCreator) Create() error

type ComponentFile

type ComponentFile struct {
	ComponentName string
	Data          map[string]interface{}
	Type          string
}

ComponentFile base component creator

func (*ComponentFile) Create

func (c *ComponentFile) Create() error

type ConfigFile

type ConfigFile struct {
	Env       string
	Config    Properties
	Overwrite bool
}

func (*ConfigFile) Create

func (y *ConfigFile) Create() error

type ControllerFile

type ControllerFile struct {
	ControllerName string
	Group          string
}

ControllerFile controller creator

func (*ControllerFile) Create

func (c *ControllerFile) Create() error

type File

type File struct {
	PkgName      string
	Wd           string
	Template     string
	Ext          string
	SkipIfExists bool
	Data         map[string]interface{}

	FileName    string
	PostHandler func(file *File)
	// contains filtered or unexported fields
}

func (*File) Create

func (g *File) Create() error

func (*File) FileExists added in v1.4.3

func (g *File) FileExists() bool

func (*File) GetFileName

func (g *File) GetFileName() string

func (*File) SetAttribute

func (g *File) SetAttribute(key string, value interface{})

type FileCreator

type FileCreator interface {
	Create() error
}

type FilterFile

type FilterFile struct {
	FilterName string
	Pattern    string
	Order      int
}

FilterFile filter creator

func (*FilterFile) Create

func (f *FilterFile) Create() error

type GoFile

type GoFile struct {
	*File
}

func NewGoFile added in v1.4.3

func NewGoFile(template, pkg, fileName string, skipIfExists bool) *GoFile

type Properties

type Properties = map[string]interface{}

type RepositoryFile

type RepositoryFile struct {
	RepoName   string
	Table      string
	DataSource string
}

RepositoryFile repository creator

func (*RepositoryFile) Create

func (s *RepositoryFile) Create() error

type ScanFile

type ScanFile struct {
	Path string
}

func (*ScanFile) Create

func (s *ScanFile) Create() error

type ServiceFile

type ServiceFile struct {
	ServiceName string
}

ServiceFile service creator

func (*ServiceFile) Create

func (s *ServiceFile) Create() error

type StructureGoFile

type StructureGoFile struct {
}

type UsePluginFile

type UsePluginFile struct {
	FileName     string
	Paths        []string
	Plugins      []string
	Processors   []string
	Imports      []string
	Packages     []string
	Dependencies []string
}

func (*UsePluginFile) Create

func (u *UsePluginFile) Create() error

type YamlFile

type YamlFile struct {
	Pkg          string
	Template     string
	SkipIfExists bool
	Data         map[string]interface{}
	FileName     string
}

func (*YamlFile) Create

func (y *YamlFile) Create() error

Jump to

Keyboard shortcuts

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