Versions in this module Expand all Collapse all v0 v0.0.3 Jul 16, 2026 v0.0.2 Jul 15, 2026 Changes in this version + const ComponentsJSONRelPath + const ConfigSchemaModule + const ServiceRowPrefix + func AssignBootstrapAliases(services []BootstrapServiceData, packages []BootstrapPackageData, ...) + func AttachEntityMeta(page *PageTemplateData, entity EntityDef) + func CollisionCounts(services []BootstrapServiceData, packages []BootstrapPackageData, ...) map[string]int + func ComponentsToJSON(projectName string, components []config.ComponentConfig) ([]byte, error) + func ComputeTestHelperName(servicePkg, projectDir string) string + func ConfigFieldNamesFromMessages(messages []ConfigMessage) map[string]bool + func ConvNeedsTimestamppb(convs []EntityConvTemplateData) bool + func DefaultConfigFieldNames() map[string]bool + func DetectConstructorType(dir string) (string, error) + func DetectDepsDBField(dir string) (bool, error) + func DetectFallibleConstructor(dir string) (bool, error) + func EntityDefToPlanEntity(entity EntityDef) config.PlanEntity + func EntityDefsToPlanEntities(entities []EntityDef) []config.PlanEntity + func ExtractPlaceholderType(text string) string + func ExtractPlaceholderTypeCommentGroup(cg *ast.CommentGroup) string + func GenerateAuthMiddleware(cfg *config.AuthConfig, modulePath string, skipMethods []string, ...) error + func GenerateAuthorizer(services []ServiceDef, modulePath string, targetDir string, ...) error + func GenerateBootstrapTesting(in BootstrapTestingGenInput) error + func GenerateCRUDHandlers(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + func GenerateCRUDTests(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + func GenerateCmdCommands(targetDir, bin string) error + func GenerateCmdGroups(in CmdServiceGroupInput, targetDir string, cs *checksums.FileChecksums) error + func GenerateCmdMainRoot(targetDir, bin string, cs *checksums.FileChecksums) error + func GenerateCmdServer(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + func GenerateCmdServerWithFields(configFields map[string]bool, authProvider string, targetDir string, ...) error + func GenerateComponentsJSON(projectDir, projectName string, components []config.ComponentConfig, ...) error + func GenerateCompose(in InjectGenInput) error + func GenerateConfigKFromYAML(fields []ConfigField, envConfig map[string]any, projectName string) (string, error) + func GenerateConfigKScaffold(fields []ConfigField, envConfig map[string]any, ...) (bool, error) + func GenerateConfigLoader(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + func GenerateConfigNativeShared(fields []ConfigField, projectName, projectDir, kclDirAbs string, ...) error + func GenerateConfigProjectionKCL(fields []ConfigField) (string, error) + func GenerateConfigSchemaKCL(fields []ConfigField, projectName string) (string, error) + func GenerateDeployConfig(in DeployConfigGenInput) error + func GenerateInventory(in InventoryGenInput) error + func GenerateK3dPorts(in K3dPortsGenInput) error + func GenerateLifecycle(in InjectGenInput) error + func GenerateMCPManifest(in MCPGenInput) error + func GenerateMigrate(targetDir string, modulePath string, hasMigrations bool, ...) error + func GenerateMock(svc ServiceDef, mockDir string) (written bool, err error) + func GenerateProviders(modulePath, databaseDriver string, ormEnabled bool, projectDir string) error + func GenerateServiceStub(svc ServiceDef, targetDir string, crudMethodNames ...map[string]bool) error + func GenerateTenantMiddleware(mt *config.MultiTenantConfig, targetDir string, cs *checksums.FileChecksums) error + func GetModulePath(dir string) (string, error) + func HasExcludeContractDirective(dir string) bool + func HasExternalComponentDirective(dir string) bool + func HasOptionalDepMarker(text string) bool + func HasOptionalDepMarkerCommentGroup(cg *ast.CommentGroup) bool + func IntrospectComponentNames(projectDir string) []string + func IntrospectComponents(projectDir string) []config.ComponentConfig + func IsLocallyDeclaredInterface(typeExpr string, locals map[string]LocalInterface) bool + func NormalizeAuthProvider(provider string) (normalized string, external bool) + func ParseCRUDOperation(methodName string) (operation, entityName string) + func ParseLocalInterfaces(dir string) (map[string]LocalInterface, error) + func ParsePackageClause(dir string) (string, error) + func PascalToKebab(s string) string + func ProtoFileToTSImportPath(protoFile string) string + func ProtoTypeToGoType(protoType string) string + func RegenerateServiceFile(svc ServiceDef, targetDir string) error + func RemoveK3dPorts(projectDir string) error + func ResolveCollisionNaming(pkg, fallbackFieldName, rolePrefix string, counts map[string]int) (alias, fieldName string) + func ScaffoldOperatorCmd(targetDir, bin, name string) (bool, error) + func ScaffoldWorkerCmd(targetDir, bin, name string) (bool, error) + func ServiceHasWebhooks(handlerDir string) bool + func ServiceNameFromProtoFile(protoFile string) string + func ServiceRowFuncName(svcName string) string + func ToCamelCaseFromPascalExport(s string) string + func VerifyCanKeyUniverse(svc ServiceDef, entities []EntityDef, methods []AuthzMethodData) error + func WebhookNamesForService(handlerDir string) []string + type AppField struct + Name string + Placeholder string + Type string + func ParseAppFields(appDir string) ([]AppField, error) + type AppFieldRef struct + DepsField string + type AuthTemplateData struct + APIKey config.APIKeyConfig + JWT config.JWTConfig + Module string + Provider string + SkipMethods []string + type AuthzMethodData struct + AuthRequired bool + AuthzCustom bool + Errors []string + Procedure string + RequiredRoles []string + func BuildAuthzMethods(svc ServiceDef, entities []EntityDef) []AuthzMethodData + type AuthzTemplateData struct + Methods []AuthzMethodData + Module string + Package string + ServiceName string + type BootstrapComponentData struct + Alias string + AppFieldRefs []AppFieldRef + CanonicalAppField string + ConnectPkg string + Fallible bool + FieldName string + HasConfig bool + HasLogger bool + HasWebhooks bool + ImportPath string + Name string + Package string + ProtoServiceName string + VarName string + type BootstrapOperatorData = BootstrapComponentData + func OperatorDataFromNames(names []string, projectDir string) ([]BootstrapOperatorData, error) + func OperatorDataFromSpecs(specs []OperatorSpec, projectDir string) ([]BootstrapOperatorData, error) + type BootstrapPackageData = BootstrapComponentData + func PackageDataFromNames(names []string, projectDir string) ([]BootstrapPackageData, error) + type BootstrapServiceData = BootstrapComponentData + type BootstrapTestServiceData struct + Alias string + AutoStubs []DepsAutoStub + Fallible bool + FieldName string + HasAuthorizer bool + HasDB bool + ImportPath string + Name string + Package string + ProtoConnectImportPath string + ProtoConnectPkg string + ProtoServiceName string + UnresolvedStubs []UnresolvedAutoStub + VarName string + type BootstrapTestingGenInput struct + MultiTenantEnabled bool + Operators []BootstrapOperatorData + Packages []BootstrapPackageData + Services []ServiceDef + Workers []BootstrapWorkerData + type BootstrapWorkerData = BootstrapComponentData + func WorkerDataFromNames(names []string, projectDir string) ([]BootstrapWorkerData, error) + func WorkerDataFromSpecs(specs []WorkerSpec, projectDir string) ([]BootstrapWorkerData, error) + type BuildComponent struct + Alias string + Deps []DepsField + FieldName string + ImportPath string + Name string + ServiceTypeKey string + VarName string + type BuildEdge struct + Consumer string + Field string + Producer string + Type string + type BuildPlan struct + CycleEdges []BuildEdge + Cycles []string + Edges []BuildEdge + Order []BuildComponent + func ComputeBuildPlan(comps []BuildComponent, resolver TypeResolver) BuildPlan + func (p BuildPlan) HasCycle() bool + type CRUDMethod struct + Entity EntityDef + Method MethodTemplateData + Operation string + func MatchCRUDMethods(svc ServiceDef, entities []EntityDef) []CRUDMethod + type CRUDMethodTemplateData struct + AuthAction string + AuthRequired bool + CreateAssigns []string + CreateFields []CreateFieldData + CustomFilters []FilterFieldData + EntityLower string + EntityName string + FilterFields []FilterFieldData + HasFilters bool + HasOrderBy bool + HasPagination bool + HasPkInInput bool + HasTenant bool + InputType string + MethodName string + MismatchReason string + Operation string + OutputType string + PaginationStyle string + PkColumnName string + PkField string + PkGoType string + ResponseField string + ShapeMismatch bool + TenantColumnName string + TenantGoName string + UpdateEntityField string + UpdateMaskField string + type CRUDTemplateData struct + CRUDMethods []CRUDMethodTemplateData + DBPackagePath string + Entities []EntityConvTemplateData + HasFilters bool + HasOrderBy bool + HasPagination bool + HasTenant bool + Module string + NeedsCRUDLib bool + NeedsORM bool + NeedsOpsFile bool + NeedsTimestamppb bool + Package string + ProtoPackage string + type CRUDTestEntityData struct + CreateFields []CRUDTestFieldData + CreateMethod CRUDMethodTemplateData + DeleteMethod CRUDMethodTemplateData + EntityLower string + EntityName string + Fields []CRUDTestFieldData + GetMethod CRUDMethodTemplateData + HasAllCRUD bool + HasCreate bool + HasDelete bool + HasGet bool + HasList bool + HasTenant bool + HasTimestamps bool + HasUpdate bool + ListMethod CRUDMethodTemplateData + MutableStringField string + MutableStringFieldPath string + PkField string + PkGoType string + SecondStringField string + SecondStringFieldPath string + TenantColumnName string + TenantGoName string + UpdateEntityField string + UpdateMethod CRUDMethodTemplateData + type CRUDTestFieldData struct + GoType string + Kind FieldKind + ProtoName string + TestValue string + type CRUDTestTemplateData struct + CRUDMethods []CRUDMethodTemplateData + Entities []CRUDTestEntityData + HasTenant bool + Module string + NeedsFieldMask bool + Package string + ProtoPackage string + TestHelperName string + type CmdCtorRef struct + Ctor string + type CmdGroupItem struct + Bin string + FieldName string + Module string + MountFieldName string + Name string + type CmdMainTemplateData struct + Bin string + Module string + Operators []CmdCtorRef + Services []CmdCtorRef + Workers []CmdCtorRef + type CmdServerTemplateData struct + AuthProvider string + AuthProviderExternal bool + ConfigFields map[string]bool + Module string + RESTEnabled bool + type CmdServiceGroupInput struct + Bin string + Packages []BootstrapPackageData + Services []string + type CmdServicesTemplateData struct + Skipped []string + type ConfigBlockRef struct + FieldName string + TypeName string + func ConfigBlocksFromMessages(messages []ConfigMessage) []ConfigBlockRef + type ConfigField struct + Category string + DefaultValue string + Description string + EnvVar string + Flag string + GoName string + GoType string + MessageType string + Name string + ProtoType string + Required bool + Role string + Sensitive bool + type ConfigMessage struct + Fields []ConfigField + Name string + func DefaultConfigMessages() []ConfigMessage + func ParseConfigProto(protoPath string) ([]ConfigMessage, error) + func ParseConfigProtosFromDir(dir string) ([]ConfigMessage, error) + type ConfigTemplateBlockField struct + GoName string + TypeName string + type ConfigTemplateBlockType struct + Fields []ConfigTemplateField + TypeName string + type ConfigTemplateData struct + BlockFields []ConfigTemplateBlockField + BlockTypes []ConfigTemplateBlockType + Fields []ConfigTemplateField + Module string + NeedsStrconv bool + RoleModeField string + RootFields []ConfigTemplateField + func BuildConfigTemplateData(messages []ConfigMessage) ConfigTemplateData + type ConfigTemplateField struct + AllowEmptyEnv bool + DefaultBool bool + DefaultFloat32 float32 + DefaultFloat64 float64 + DefaultInt32 int32 + DefaultInt64 int64 + DefaultValue string + Description string + EnvVar string + Flag string + GoName string + GoPath string + GoType string + HasDefault bool + IsDuration bool + ParseFn string + Required bool + Role string + Sensitive bool + StructGoType string + type CreateFieldData struct + EntityGoName string + EnumGoType string + GoType string + Kind FieldKind + ProtoGoName string + type CrossPkgInterfaceResult struct + Methods []InterfaceMethod + NeededImports map[string]string + PackageName string + PackagePath string + func ResolveCrossPkgInterface(handlerDir, pkgAlias, typeName string) (CrossPkgInterfaceResult, bool) + type DeployConfigGenInput struct + EnvConfig map[string]any + EnvName string + Fields []ConfigField + KCLDir string + ProjectName string + type Deps struct + type DepsAssignabilityMatcher struct + func NewDepsAssignabilityMatcher(projectDir string) *DepsAssignabilityMatcher + func (m *DepsAssignabilityMatcher) AssignablePairs(roleRoot, pkgDir string) []InterfaceAssertion + func (m *DepsAssignabilityMatcher) Match(roleRoot, pkgDir, depsFieldName, depsTypeStr, appTypeStr string, ...) MatchKind + type DepsAutoStub struct + CrossPackage bool + ExtraImports []ExtraImport + FieldName string + InterfaceQualified string + Methods []InterfaceMethod + StubType string + type DepsField struct + Name string + Optional bool + Type string + func ParseServiceDeps(dir string) ([]DepsField, error) + type EntityColumn struct + DeclType string + Default string + IsArray bool + IsGenerated bool + IsPK bool + Name string + NotNull bool + Type string + type EntityConvTemplateData struct + EntityLower string + EntityName string + FromProtoAssigns []string + ToProtoAssigns []string + func BuildEntityConv(svc ServiceDef, entity EntityDef) EntityConvTemplateData + type EntityDef struct + Columns []EntityColumn + Fields []EntityField + HasTenant bool + Name string + PkField string + PkGoType string + ProtoFile string + SearchColumns []string + SoftDelete bool + TableName string + TenantColumnName string + TenantFieldName string + TenantGoName string + Timestamps bool + func BuildSchemaEntities(projectDir string, services []ServiceDef) ([]EntityDef, error) + func ParseEntityProtos(projectDir string) ([]EntityDef, error) + type EntityField struct + FKTable string + GoName string + GoType string + IsFK bool + Kind FieldKind + MessageType string + Name string + ProtoType string + type EntityPageField struct + IsBadge bool + Label string + Name string + type ExtraImport struct + Alias string + Path string + func SortedNeededImports(needed map[string]string) []ExtraImport + type FieldKind string + const FieldKindEnum + const FieldKindMap + const FieldKindMessage + const FieldKindRepeatedMessage + const FieldKindRepeatedScalar + const FieldKindScalar + const FieldKindTimestamp + const FieldKindWrapper + func DetermineFieldKind(protoType, goType string) FieldKind + type FilterFieldData struct + ColumnName string + FieldType string + FilterType string + GoName string + IsOptional bool + ProtoName string + SearchColumns []string + type ForgeDescriptor struct + Configs []ConfigMessage + Services []ServiceDef + type FrontendHookMethod struct + EntityScope string + InputType string + IsQuery bool + Name string + NameCamel string + OutputType string + type FrontendHookTemplateData struct + ApiPackage string + EntityScopes []string + HasMutations bool + HasQueries bool + ImportPath string + Methods []FrontendHookMethod + SchemaImports []HookImportGroup + ServiceName string + ServiceNameCamel string + TypeImports []HookImportGroup + Workspaces bool + func ServiceDefToHookData(svc ServiceDef) FrontendHookTemplateData + type GenContext struct + Checksums *checksums.FileChecksums + ModulePath string + ProjectDir string + type HookImportGroup struct + ImportPath string + Symbols []string + type InfraAssignabilityMatcher struct + func NewInfraAssignabilityMatcher(projectDir string) *InfraAssignabilityMatcher + func (m *InfraAssignabilityMatcher) ResolveInfraField(roleRoot, pkgDir, depsFieldName, depsType string, ...) (string, MatchKind) + type InfraField struct + Name string + Type string + type InjectAssignment struct + Comment string + Expr string + Field string + type InjectComponentData struct + Alias string + Assignments []InjectAssignment + Fallible bool + FieldName string + ImportPath string + LocalVar string + NeedsAuthzVar bool + Package string + VarName string + type InjectGenData struct + CycleEdges []BuildEdge + Fields []composeField + HasCycle bool + Module string + NeedsAuthorizer bool + NeedsConfigImport bool + NeedsFmt bool + Order []InjectComponentData + type InjectGenInput struct + Operators []BootstrapOperatorData + Packages []BootstrapPackageData + Services []ServiceDef + Workers []BootstrapWorkerData + func (in InjectGenInput) RoleRoot(c BuildComponent) string + type Inspector interface + DetectDepsDBField func(dir string) (bool, error) + DetectFallibleConstructor func(dir string) (bool, error) + func NewInspector(_ Deps) Inspector + type InterfaceAssertion struct + Concrete string + DepsField string + Imports map[string]string + Interface string + type InterfaceMethod struct + Name string + Params string + Results string + ReturnStatement string + type InventoryGenData struct + ConnectImports []string + Module string + RESTEnabled bool + Services []InventoryServiceData + type InventoryGenInput struct + Operators []BootstrapOperatorData + Packages []BootstrapPackageData + Services []ServiceDef + WebhookServices map[string]bool + Workers []BootstrapWorkerData + type InventoryServiceData struct + Alias string + BaseService string + ConnectPkg string + FieldName string + HasAuthorizer bool + HasWebhooks bool + ImportPath string + Name string + Package string + ProtoServiceName string + Version string + type K3dListener struct + GatewayName string + ListenerName string + Port int + type K3dPortsGenInput struct + Listeners []K3dListener + type LocalInterface struct + Methods []InterfaceMethod + Name string + type MCPGenInput struct + ProjectName string + Services []ServiceDef + type MatchKind int + const MatchAssignable + const MatchExactString + const MatchNameMismatch + const MatchNoName + const MatchUnavailable + const MatchUnprovenBackstop + type MessageFieldDef struct + IsOptional bool + MessageType string + Name string + ProtoType string + type Method struct + AuthRequired bool + AuthzCustom bool + ClientStreaming bool + Errors []string + InputProtoFile string + InputType string + InputTypeFQ string + Name string + OutputProtoFile string + OutputType string + OutputTypeFQ string + RequiredRoles []string + ServerStreaming bool + func (m Method) GoInputType() string + func (m Method) GoOutputType() string + func (m Method) IsInputEmpty() bool + func (m Method) IsOutputEmpty() bool + type MethodTemplateData struct + AuthRequired bool + ClientStreaming bool + InputType string + Name string + OutputType string + ServerStreaming bool + type MissingHandlerResult struct + AllUpToDate bool + NewMethods []string + func GenerateMissingHandlerStubs(svc ServiceDef, projectDir, targetDir string, crudMethodNames map[string]bool, ...) (*MissingHandlerResult, error) + type MissingProvider struct + Component string + Field string + Type string + type MockEntityTemplateData struct + EntityName string + EntityNamePlural string + EntitySlug string + Fields []MockField + ImportPath string + Records []MockRecord + SchemaImport string + TypeImport string + func EntityDefToMockData(entity EntityDef, svc ServiceDef) MockEntityTemplateData + type MockField struct + Name string + ProtoName string + TSType string + type MockFieldValue struct + Last bool + Name string + Value string + type MockInspector struct + DetectDepsDBFieldFunc func(string) (bool, error) + DetectFallibleConstructorFunc func(string) (bool, error) + func (m *MockInspector) DetectDepsDBField(dir string) (bool, error) + func (m *MockInspector) DetectFallibleConstructor(dir string) (bool, error) + type MockParser struct + GetModulePathFunc func(string) (string, error) + ParseConfigProtoFunc func(string) ([]ConfigMessage, error) + ParseConfigProtosFromDirFunc func(string) ([]ConfigMessage, error) + ParseEntityProtosFunc func(string) ([]EntityDef, error) + ParseServicesFromProtosFunc func(string, string) ([]ServiceDef, error) + func (m *MockParser) GetModulePath(dir string) (string, error) + func (m *MockParser) ParseConfigProto(protoPath string) ([]ConfigMessage, error) + func (m *MockParser) ParseConfigProtosFromDir(dir string) ([]ConfigMessage, error) + func (m *MockParser) ParseEntityProtos(projectDir string) ([]EntityDef, error) + func (m *MockParser) ParseServicesFromProtos(dir string, projectDir string) ([]ServiceDef, error) + type MockRecord struct + Fields []MockFieldValue + type MockService struct + GenerateAuthMiddlewareFunc func(*config.AuthConfig, string, []string, string, *checksums.FileChecksums) error + GenerateAuthorizerFunc func([]ServiceDef, string, string, map[string]bool, *checksums.FileChecksums) error + GenerateBootstrapTestingFunc func(BootstrapTestingGenInput) error + GenerateCRUDHandlersFunc func(ServiceDef, []CRUDMethod, string, string, *checksums.FileChecksums) error + GenerateCRUDTestsFunc func(ServiceDef, []CRUDMethod, string, string, *checksums.FileChecksums) error + GenerateCmdServerFunc func([]ConfigMessage, string, *checksums.FileChecksums) error + GenerateCmdServerWithFieldsFunc func(map[string]bool, string, string, *checksums.FileChecksums) error + GenerateConfigLoaderFunc func([]ConfigMessage, string, *checksums.FileChecksums) error + GenerateMigrateFunc func(string, string, bool, *checksums.FileChecksums) error + GenerateMissingHandlerStubsFunc func(ServiceDef, string, string, map[string]bool, *checksums.FileChecksums) (*MissingHandlerResult, error) + GenerateMockFunc func(ServiceDef, string) (bool, error) + GenerateServiceStubFunc func(ServiceDef, string, ...map[string]bool) error + GenerateTenantMiddlewareFunc func(*config.MultiTenantConfig, string, *checksums.FileChecksums) error + RegenerateServiceFileFunc func(ServiceDef, string) error + func (m *MockService) GenerateAuthMiddleware(cfg *config.AuthConfig, modulePath string, skipMethods []string, ...) error + func (m *MockService) GenerateAuthorizer(services []ServiceDef, modulePath string, targetDir string, ...) error + func (m *MockService) GenerateBootstrapTesting(in BootstrapTestingGenInput) error + func (m *MockService) GenerateCRUDHandlers(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + func (m *MockService) GenerateCRUDTests(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + func (m *MockService) GenerateCmdServer(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + func (m *MockService) GenerateCmdServerWithFields(configFields map[string]bool, authProvider string, targetDir string, ...) error + func (m *MockService) GenerateConfigLoader(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + func (m *MockService) GenerateMigrate(targetDir string, modulePath string, hasMigrations bool, ...) error + func (m *MockService) GenerateMissingHandlerStubs(svc ServiceDef, projectDir string, targetDir string, ...) (*MissingHandlerResult, error) + func (m *MockService) GenerateMock(svc ServiceDef, mockDir string) (bool, error) + func (m *MockService) GenerateServiceStub(svc ServiceDef, targetDir string, crudMethodNames ...map[string]bool) error + func (m *MockService) GenerateTenantMiddleware(mt *config.MultiTenantConfig, targetDir string, cs *checksums.FileChecksums) error + func (m *MockService) RegenerateServiceFile(svc ServiceDef, targetDir string) error + type MockTransportEntity struct + CreateEntityFieldCamel string + CreateRPC string + CreateRequestType string + CreateResponseType string + DeleteRPC string + DeleteRequestType string + EntityImportPath string + EntityName string + EntityNamePlural string + EntitySlug string + GetEntityFieldCamel string + GetRPC string + GetRequestType string + GetResponseType string + HasCreate bool + HasDelete bool + HasGet bool + HasList bool + HasUpdate bool + ImportPath string + ItemsField string + ListRPC string + ListResponseType string + PkFieldCamel string + SchemaImport string + ServiceName string + ServiceTypeName string + TypeImport string + UpdateRPC string + UpdateRequestType string + func ExtractMockTransportEntities(services []ServiceDef, entities []EntityDef) []MockTransportEntity + type MockTransportSchemaImportGroup struct + ImportPath string + Symbols []string + func BuildMockTransportSchemaImportGroups(entities []MockTransportEntity) []MockTransportSchemaImportGroup + type MockTransportTemplateData struct + Entities []MockTransportEntity + SchemaImportGroups []MockTransportSchemaImportGroup + func (d MockTransportTemplateData) HasWritableEntities() bool + type OperatorSpec struct + Name string + Path string + type PageField struct + IsBigInt bool + IsRepeated bool + Label string + Name string + ProtoName string + ProtoType string + RepeatedNumeric bool + Required bool + Type string + type PageTemplateData struct + Columns []EntityPageField + CreateFields []PageField + CreateRPC string + CreateRequestType string + CreateResponseType string + DeleteRPC string + DeleteRequestType string + DisplayField string + EntityName string + EntityNamePlural string + EntitySlug string + EntityTypeImportPath string + GetRPC string + GetRequestType string + GetResponseType string + HasBadgeColumns bool + HasCreate bool + HasDateCreateFields bool + HasDateUpdateFields bool + HasDelete bool + HasGet bool + HasList bool + HasUpdate bool + HooksImportPath string + ItemsField string + ListRPC string + ListResponseType string + PkFieldCamel string + SearchFields []string + ServiceName string + ServiceNameCamel string + TypesImportPath string + UpdateEntityFieldCamel string + UpdateFields []PageField + UpdateMaskFieldCamel string + UpdateRPC string + UpdateRequestType string + func ExtractCRUDEntities(svc ServiceDef) []PageTemplateData + type Parser interface + GetModulePath func(dir string) (string, error) + ParseConfigProto func(protoPath string) ([]ConfigMessage, error) + ParseConfigProtosFromDir func(dir string) ([]ConfigMessage, error) + ParseEntityProtos func(projectDir string) ([]EntityDef, error) + ParseServicesFromProtos func(dir string, projectDir string) ([]ServiceDef, error) + func NewParser(_ Deps) Parser + type ResolvedComponent struct + Dir string + FromDisk bool + ImportLeaf string + PackageName string + func ResolveComponentDir(projectDir, roleRoot, name string) (ResolvedComponent, error) + func ResolveServiceComponent(projectDir, svcName string) (ResolvedComponent, error) + type ScenarioRpcData struct + Entries []ScenarioRpcEntry + TypeImports []HookImportGroup + func BuildScenarioRpcData(services []ServiceDef) ScenarioRpcData + type ScenarioRpcEntry struct + Key string + RequestType string + ResponseSchema string + type SchemaFieldDef struct + Kind string + MapKeyKind string + MapValueKind string + MapValueTypeName string + Name string + Oneof string + Optional bool + Repeated bool + TypeName string + type Service interface + GenerateAuthMiddleware func(cfg *config.AuthConfig, modulePath string, skipMethods []string, ...) error + GenerateAuthorizer func(services []ServiceDef, modulePath string, targetDir string, ...) error + GenerateBootstrapTesting func(in BootstrapTestingGenInput) error + GenerateCRUDHandlers func(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + GenerateCRUDTests func(svc ServiceDef, crudMethods []CRUDMethod, modulePath string, projectDir string, ...) error + GenerateCmdServer func(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + GenerateCmdServerWithFields func(configFields map[string]bool, authProvider string, targetDir string, ...) error + GenerateConfigLoader func(messages []ConfigMessage, targetDir string, cs *checksums.FileChecksums) error + GenerateMigrate func(targetDir string, modulePath string, hasMigrations bool, ...) error + GenerateMissingHandlerStubs func(svc ServiceDef, projectDir, targetDir string, crudMethodNames map[string]bool, ...) (*MissingHandlerResult, error) + GenerateMock func(svc ServiceDef, mockDir string) (bool, error) + GenerateServiceStub func(svc ServiceDef, targetDir string, crudMethodNames ...map[string]bool) error + GenerateTenantMiddleware func(mt *config.MultiTenantConfig, targetDir string, cs *checksums.FileChecksums) error + RegenerateServiceFile func(svc ServiceDef, targetDir string) error + func New(_ Deps) Service + type ServiceDef struct + Enums map[string][]string + GoPackage string + Messages map[string][]MessageFieldDef + Methods []Method + ModulePath string + Name string + Package string + PkgName string + ProtoFile string + SchemaFiles map[string]string + Schemas map[string][]SchemaFieldDef + func ParseServicesFromProtos(dir string, projectDir string) ([]ServiceDef, error) + type ServiceKeyResolver struct + func NewServiceKeyResolver(comps []BuildComponent) *ServiceKeyResolver + func (r *ServiceKeyResolver) Resolve(consumer BuildComponent, depsType string) string + type ServiceTemplateData struct + HandlerName string + Methods []MethodTemplateData + Module string + ProtoConnectPackage string + ProtoFileSymbol string + ProtoImportPath string + ProtoPackage string + ServiceImportPath string + ServiceName string + ServicePackage string + TestHelperName string + type TenantTemplateData struct + ClaimField string + ColumnName string + type TypeResolver interface + Resolve func(consumer BuildComponent, depsType string) string + type UnresolvedAutoStub struct + FieldName string + TypeExpr string + type UnresolvedPlaceholder struct + CurrentType string + FieldName string + TargetType string + type WorkerSpec struct + Name string + Path string