Documentation ¶
Index ¶
Constants ¶
View Source
const ClientFile = "client.go.tmpl"
View Source
const ConfigFile = "rest-opentel-config.go.tmpl"
View Source
const ConfigPath = "/config"
View Source
const ControllersPath = RestServerPath + "/controllers"
View Source
const DaoFile = "dao.go.tmpl"
View Source
const DaosPath = RestServerPath + "/daos"
View Source
const Map = "Map"
View Source
const MapDBConfigFile = "map.go.tmpl"
View Source
const ModelsPath = RestServerPath + "/models"
View Source
const MongoDB = "MongoDB"
MongoDB nosql databases
View Source
const MongoDBConfigFile = "mongodb.go.tmpl"
View Source
const MongoDBDaoFile = "mongodb-dao.go.tmpl"
View Source
const MySQL = "MySQL"
View Source
const MySQLDBConfigFile = "mysql.go.tmpl"
View Source
const MySQLDaoFile = "mysql-dao.go.tmpl"
View Source
const MySQLGORM = "MySQL-GORM"
View Source
const MySQLGORMDBConfigFile = "mysql-gorm.go.tmpl"
View Source
const MySQLGORMDaoFile = "mysql-gorm-dao.go.tmpl"
View Source
const NoSQLControllerFile = "nosqls-controller.go.tmpl"
View Source
const NoSQLDBClientsPath = DaosPath + "/clients/nosqls"
View Source
const NoSQLModelFile = "nosqls-model.go.tmpl"
View Source
const NoSQLServiceFile = "nosqls-service.go.tmpl"
View Source
const RestClientPath = "/pkg/rest/client"
View Source
const RestServerPath = "/pkg/rest/server"
View Source
const SQLControllerFile = "sqls-controller.go.tmpl"
View Source
const SQLDBClientsPath = DaosPath + "/clients/sqls"
View Source
const SQLGORMModelFile = "sqls-gorm-model.go.tmpl"
SQLGORMModelFile GORM integration
View Source
const SQLModelFile = "sqls-model.go.tmpl"
View Source
const SQLServiceFile = "sqls-service.go.tmpl"
View Source
const SQLite = "SQLite"
SQLite sql databases
View Source
const SQLiteDBConfigFile = "sqlite.go.tmpl"
View Source
const SQLiteDaoFile = "sqlite-dao.go.tmpl"
View Source
const SQLiteGORM = "SQLite-GORM"
View Source
const SQLiteGORMDBConfigFile = "sqlite-gorm.go.tmpl"
View Source
const SQLiteGORMDaoFile = "sqlite-gorm-dao.go.tmpl"
View Source
const ServicesPath = RestServerPath + "/services"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
type Copier struct { NodeDirectoryName string TemplatesRootPath string Data map[string]interface{} IsRestServer bool HasRestClients bool SQLDB string IsSQLDB bool NoSQLDB string IsNoSQLDB bool RestServerPort string Resources []*corenode.Resource ResourceConfig map[string]*frameworks.RestResourceData RestClients []*corenode.RestClient PluralizeClient *pluralize.Client }
Copier Language specific *Copier
func NewCopier ¶
func NewCopier(gitPlatformURL, gitPlatformUserName, gitRepositoryName, nodeName, nodeDirectoryName, templatesRootPath string, isRestServer bool, restServerPort string, isSQLDB bool, sqlDB string, isNoSQLDB bool, noSQLDB string, resources []*corenode.Resource, restClients []*corenode.RestClient) *Copier
func (*Copier) CreateRestClients ¶
CreateRestClients creates/copies relevant files to a generated project
func (*Copier) CreateRestServer ¶
CreateRestServer creates/copies relevant files to a generated project
func (*Copier) CreateRootLevelFiles ¶
CreateRootLevelFiles copies all root level files at language template.
Click to show internal directories.
Click to hide internal directories.