dotnetcleanarchitecture

package
v1.2.2-0...-301a9f9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationCSProjFile = "/Application/Application.csproj.tmpl"
View Source
const ApplicationCommandsCreateResourceNameCommandCSFile = "/Application/Commands/ResourceNameService/CreateResourceNameCommand.cs.tmpl"
View Source
const ApplicationCommandsDeleteResourceNameCommandCSFile = "/Application/Commands/ResourceNameService/DeleteResourceNameCommand.cs.tmpl"
View Source
const ApplicationCommandsPath = "/Application/Commands"

commands

View Source
const ApplicationCommandsUpdateResourceNameCommandCSFile = "/Application/Commands/ResourceNameService/UpdateResourceNameCommand.cs.tmpl"
View Source
const ApplicationExceptionsPath = "/Application/Exceptions"

exceptions

View Source
const ApplicationExceptionsResourceNameNotFoundExceptionCSFile = "/Application/Exceptions/ResourceNameNotFoundException.cs.tmpl"
View Source
const ApplicationExtensionsPath = "/Application/Extensions"

extensions

View Source
const ApplicationExtensionsServiceRegistrationCSFile = "/Application/Extensions/ServiceRegistration.cs.tmpl"
View Source
const ApplicationHandlersCreateResourceNameCommandHandlerCSFile = "/Application/Handlers/ResourceNameService/CreateResourceNameCommandHandler.cs.tmpl"
View Source
const ApplicationHandlersDeleteResourceNameCommandHandlerCSFile = "/Application/Handlers/ResourceNameService/DeleteResourceNameCommandHandler.cs.tmpl"
View Source
const ApplicationHandlersGetAllResourceNamesQueryHandlerCSFile = "/Application/Handlers/ResourceNameService/GetAllResourceNamesQueryHandler.cs.tmpl"
View Source
const ApplicationHandlersGetResourceNameByIDQueryHandlerCSFile = "/Application/Handlers/ResourceNameService/GetResourceNameByIdQueryHandler.cs.tmpl"
View Source
const ApplicationHandlersPath = "/Application/Handlers"

handlers

View Source
const ApplicationHandlersResourceNameServicePath = "/Application/Handlers/ResourceNameService"
View Source
const ApplicationHandlersUpdateResourceNameCommandHandlerCSFile = "/Application/Handlers/ResourceNameService/UpdateResourceNameCommandHandler.cs.tmpl"
View Source
const ApplicationMappersMappingProfileCSFile = "/Application/Mappers/MappingProfile.cs.tmpl"
View Source
const ApplicationMappersPath = "/Application/Mappers"

mappers

View Source
const ApplicationPath = "/Application"
View Source
const ApplicationQueriesGetAllResourceNamesQueryCSFile = "/Application/Queries/ResourceNameService/GetAllResourceNamesQuery.cs.tmpl"
View Source
const ApplicationQueriesGetResourceNameByIDQueryCSFile = "/Application/Queries/ResourceNameService/GetResourceNameByIdQuery.cs.tmpl"
View Source
const ApplicationQueriesPath = "/Application/Queries"

queries

View Source
const ApplicationQueriesResourceNameServicePath = "/Application/Queries/ResourceNameService"
View Source
const ApplicationResponsesPath = "/Application/Responses"

responses

View Source
const ApplicationResponsesResourceNameResponseCSFile = "/Application/Responses/ResourceNameResponse.cs.tmpl"
View Source
const CoreCommonEntityBaseFile = "/Core/Common/EntityBase.cs.tmpl"
View Source
const CoreCommonPath = "/Core/Common"

common

View Source
const CoreCoreCSProjFile = "/Core/Core.csproj.tmpl"
View Source
const CoreEntitiesPath = "/Core/Entities"

entities

View Source
const CoreEntitiesResourceNameCSFile = "/Core/Entities/ResourceName.cs.tmpl"
View Source
const CorePath = "/Core"
View Source
const CoreRepositoriesIAsyncRepositoryCSFile = "/Core/Repositories/IAsyncRepository.cs.tmpl"
View Source
const CoreRepositoriesIResourceNameRepositoryCSFile = "/Core/Repositories/IResourceNameRepository.cs.tmpl"
View Source
const CoreRepositoriesPath = "/Core/Repositories"

repositories

View Source
const InfrastructureCSProjFile = "/Infrastructure/Infrastructure.csproj.tmpl"
View Source
const InfrastructureDataDatabaseContextCSFile = "/Infrastructure/Data/DatabaseContext.cs.tmpl"
View Source
const InfrastructureDataDatabaseContextFactoryCSFile = "/Infrastructure/Data/DatabaseContextFactory.cs.tmpl"
View Source
const InfrastructureDataPath = "/Infrastructure/Data"

data

View Source
const InfrastructureExtensionsOpenTelemetryRegistrationCSFile = "/Infrastructure/Extensions/OpenTelemetryRegistration.cs.tmpl"
View Source
const InfrastructureExtensionsPath = "/Infrastructure/Extensions"

extensions

View Source
const InfrastructureExtensionsServicesCollectionExtensionsCSFile = "/Infrastructure/Extensions/ServicesCollectionExtensions.cs.tmpl"
View Source
const InfrastructurePath = "/Infrastructure"
View Source
const InfrastructureRepositoriesPath = "/Infrastructure/Repositories"

repositories

View Source
const InfrastructureRepositoriesRepositoryBaseCSFile = "/Infrastructure/Repositories/RepositoryBase.cs.tmpl"
View Source
const InfrastructureRepositoriesResourceNameRepositoryCSFile = "/Infrastructure/Repositories/ResourceNameRepository.cs.tmpl"
View Source
const MicroServiceNameAppSettingsDevelopmentFile = "/MicroServiceName/appsettings.Development.json.tmpl"
View Source
const MicroServiceNameAppSettingsFile = "/MicroServiceName/appsettings.json.tmpl"
View Source
const MicroServiceNameCSProjFile = "/MicroServiceName/MicroServiceName.csproj.tmpl"

microServiceName

View Source
const MicroServiceNameCSProjUserFile = "/MicroServiceName/MicroServiceName.csproj.user.tmpl"
View Source
const MicroServiceNameControllersPath = "/Controllers"

controllers

View Source
const MicroServiceNameControllersResourceNameServiceControllerCSFile = "/MicroServiceName/Controllers/ResourceNameServiceController.cs.tmpl"
View Source
const MicroServiceNameProgramCSFile = "/MicroServiceName/Program.cs.tmpl"
View Source
const MicroServiceNamePropertiesLaunchSettingsJSONFile = "/MicroServiceName/Properties/launchSettings.json.tmpl"
View Source
const MicroServiceNamePropertiesPath = "/Properties"

properties

View Source
const MicroServiceNameSlnFile = "/MicroServiceName.sln.tmpl"
View Source
const RestClientPath = "/pkg/rest/client"

TODO REMOVE later

View Source
const TestsApplicationTestsCSProjFile = "/Tests/Application.Tests/Application.Tests.csproj.tmpl"
View Source
const TestsApplicationTestsHandlersPath = "/Tests/Application.Tests/Handlers"

handlers

View Source
const TestsGlobalUsingsCSFile = "/Tests/Application.Tests/GlobalUsings.cs.tmpl"
View Source
const TestsHandlersCreateResourceNameCommandHandlerTestsCSFile = "/Tests/Application.Tests/Handlers/ResourceNameService/CreateResourceNameCommandHandlerTests.cs.tmpl"
View Source
const TestsHandlersDeleteResourceNameCommandHandlerTestsCSFile = "/Tests/Application.Tests/Handlers/ResourceNameService/DeleteResourceNameCommandHandlerTests.cs.tmpl"
View Source
const TestsHandlersGetAllResourceNamesQueryHandlerTestsCSFile = "/Tests/Application.Tests/Handlers/ResourceNameService/GetAllResourceNamesQueryHandlerTests.cs.tmpl"
View Source
const TestsHandlersGetResourceNameByIDQueryHandlerTestsCSFile = "/Tests/Application.Tests/Handlers/ResourceNameService/GetResourceNameByIdQueryHandlerTests.cs.tmpl"
View Source
const TestsHandlersUpdateResourceNameCommandHandlerTestsCSFile = "/Tests/Application.Tests/Handlers/ResourceNameService/UpdateResourceNameCommandHandlerTests.cs.tmpl"
View Source
const TestsPath = "/Tests"

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

func (c *Copier) CreateRestServer() error

CreateRestServer creates/copies relevant files to a 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