goginserver

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: 13 Imported by: 0

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
	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

func (c *Copier) CreateRestClients() error

CreateRestClients creates/copies relevant files to generated project

func (*Copier) CreateRestConfigs

func (c *Copier) CreateRestConfigs() error

CreateRestConfigs creates/copies relevant files to generated project

func (*Copier) CreateRestServer

func (c *Copier) CreateRestServer() error

CreateRestServer creates/copies relevant files to generated project

func (*Copier) CreateRootLevelFiles

func (c *Copier) CreateRootLevelFiles() error

CreateRootLevelFiles copies all root level files at language template.

Jump to

Keyboard shortcuts

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