domain

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DecimalPkgPath   = "github.com/quagmt/udecimal"
	UUIDPkgPath      = "github.com/google/uuid"
	GoptionPkgPath   = "github.com/manicar2093/goption"
	GormPagerPkgPath = "github.com/manicar2093/gormpager"
	GormPkgPath      = "gorm.io/gorm"
	EchoPkgPath      = "github.com/labstack/echo/v4"
	TimePkgPath      = "time"
)

Variables

View Source
var (
	InternalPackagePath              Path = "internal"
	PkgPackagePath                   Path = "pkg"
	PrismaPackagePath                Path = "prisma"
	CmdPackagePath                   Path = "cmd"
	GithubPackagePath                Path = ".github"
	PkgGeneratorsPackagePath              = Path(path.Join(string(PkgPackagePath), "generators"))
	PkgTestfuncPackagePath                = Path(path.Join(string(PkgPackagePath), "testfunc"))
	PkgConfigPackagePath                  = Path(path.Join(string(PkgPackagePath), "config"))
	PkgVersioningPackagePath              = Path(path.Join(string(PkgPackagePath), "versioning"))
	CmdServicePackagePath                 = Path(path.Join(string(CmdPackagePath), "service"))
	CmdServiceControllersPackagePath      = Path(path.Join(string(CmdPackagePath), "service", "controllers"))
	PrismaSchemaPackagePath               = Path(path.Join(string(PrismaPackagePath), "schema"))
	InternalDomainModelsPackagePath       = Path(path.Join(string(InternalPackagePath), "domain", "models"))
	GithubWorkflowsPackagePath            = Path(path.Join(string(GithubPackagePath), "workflows"))

	CoreConnectionsPkg CorePackage = "connections"
	CoreCommonReqPkg   CorePackage = "commonreq"
)

Functions

func GenerateCorePackage

func GenerateCorePackage(info parser.ModuleInfo) string

func GetCorePackage

func GetCorePackage(info parser.ModuleInfo, pkg CorePackage) string

func GetGoModName

func GetGoModName() (string, error)

func GetPackageQualifier

func GetPackageQualifier(moduleName string, path Path, model string) *jen.Statement

TODO: remove this unused code

Types

type CorePackage

type CorePackage string

type Path

type Path string

type Pkg

type Pkg string
var (
	ModelsPkg     Pkg = "models"
	GeneratorsPkg Pkg = "generators"
)

Jump to

Keyboard shortcuts

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