Documentation
¶
Index ¶
- Variables
- func ExcludeTemplateFile(templateFileName string, project *Project, exclusions *FileExclusions) bool
- func IsDirectoryEmpty(name string) (bool, error)
- func RemoveEmptyDirs(paths map[string]bool) error
- func RenameFiles(project *Project, outputPath string, renames *FileRenames) error
- func Run(cfg *Config) error
- type AppType
- type BackgroundJob
- type Command
- type Config
- type Database
- type ExcludeFunc
- type FileExclusions
- type FileRenames
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAppTypes = []AppType{ AppTypeAPI, AppTypeWeb, }
View Source
var AllBackgroundJobs = []BackgroundJob{ BackgroundJobNone, BackgroundJobBasic, BackgroundJobSQS, }
View Source
var AllDatabases = []Database{ DatabaseNone, DatabaseSQLite3, DatabasePostgres, DatabaseMySQL, }
Functions ¶
func ExcludeTemplateFile ¶ added in v0.48.0
func ExcludeTemplateFile(templateFileName string, project *Project, exclusions *FileExclusions) bool
func IsDirectoryEmpty ¶ added in v0.48.0
func RemoveEmptyDirs ¶ added in v0.48.0
func RenameFiles ¶ added in v0.48.0
func RenameFiles(project *Project, outputPath string, renames *FileRenames) error
Types ¶
type BackgroundJob ¶ added in v0.40.0
type BackgroundJob string
const ( BackgroundJobNone BackgroundJob = "none" BackgroundJobBasic BackgroundJob = "basic" BackgroundJobSQS BackgroundJob = "sqs" )
func (BackgroundJob) IsValid ¶ added in v0.40.0
func (t BackgroundJob) IsValid() bool
func (BackgroundJob) String ¶ added in v0.48.0
func (t BackgroundJob) String() string
type ExcludeFunc ¶ added in v0.48.0
type FileExclusions ¶
type FileExclusions struct { SMTP []string Storage []string Redis []string AppType map[AppType][]string Database map[Database][]string BackgroundJob map[BackgroundJob][]string ExcludeFuncs []*ExcludeFunc }
func NewFileExclusions ¶ added in v0.48.0
func NewFileExclusions() *FileExclusions
type FileRenames ¶
func NewFileRenames ¶ added in v0.48.0
func NewFileRenames() *FileRenames
Click to show internal directories.
Click to hide internal directories.