commonfiles

package
v0.0.0-...-0e43621 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GitIgnoreFile = ".gitignore.tmpl"
View Source
const GoModFile = "go.mod.tmpl"
View Source
const GoSumFile = "go.sum.tmpl"
View Source
const MainGoFile = "main.go.tmpl"
View Source
const ReadMeMdFile = "README.md.tmpl"
View Source
const UsefulCommandsFile = "useful-commands.tmpl"

Variables

This section is empty.

Functions

This section is empty.

Types

type Copier

type Copier struct {
	NodeDirectoryName string
	TemplatesRootPath string
	Data              map[string]interface{}
	IsGrpcServer      bool
	HasGrpcClients    bool
	GrpcServerPort    string
	IsRestServer      bool
	HasRestClients    bool
	RestServerPort    string
	RestResources     []*corenode.Resource
	GrpcResources     []*corenode.Resource
	RestClients       []*corenode.RestClient
	GrpcClients       []*corenode.GrpcClient
	PluralizeClient   *pluralize.Client
}

Copier Language specific copier

func NewCopier

func NewCopier(gitPlatformURL, gitPlatformUserName, gitRepositoryName, nodeName, nodeDirectoryName, templatesRootPath string, isRestServer bool, restServerPort string, isGrpcServer bool, grpcServerPort string, isRestSQLDB bool, restSQLDB string, isGrpcSQLDB bool, grpcSQLDB string, isRestNoSQLDB bool, restNoSQLDB string, isGrpcNoSQLDB bool, grpcNoSQLDB string, restResources []*corenode.Resource, grpcResources []*corenode.Resource, restClients []*corenode.RestClient, grpcClients []*corenode.GrpcClient) *Copier

func (Copier) CreateCommonFiles

func (c Copier) CreateCommonFiles() error

CreateCommonFiles creates/copies relevant files to generated project

Jump to

Keyboard shortcuts

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