Documentation ¶
Index ¶
- Constants
- func GetTypeForTypeName(name string) types.Type
- type Coder
- type DataField
- type DataType
- func (typ DataType) BuildArgsForDBQuerierExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForDBQuerierRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForDBQuerierTestOfArchiveQueryBuilder() []jen.Code
- func (typ DataType) BuildArgsForDBQuerierTestOfListRetrievalQueryBuilder(p *Project) []jen.Code
- func (typ DataType) BuildArgsForDBQuerierTestOfUpdateMethod() []jen.Code
- func (typ DataType) BuildArgsForDBQuerierTestOfUpdateQueryBuilder() []jen.Code
- func (typ DataType) BuildArgsForHTTPClientArchiveMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientArchiveMethodTestURLFormatCall(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientArchiveRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientArchiveRequestBuildingMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientCreateRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientExistenceRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientExistenceRequestBuildingMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientListRequestMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientRetrievalRequestBuilderMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientRetrievalRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForHTTPClientUpdateRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildArgsForServiceRouteExistenceCheck(p *Project) []jen.Code
- func (typ DataType) BuildArgsToUseForDBQuerierCreationQueryBuildingTest() []jen.Code
- func (typ DataType) BuildCallArgsForDBClientCreationMethodTest() []jen.Code
- func (typ DataType) BuildCallArgsForDBClientListRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildCallArgsForDBClientUpdateMethodTest() []jen.Code
- func (typ DataType) BuildCallArgsForHTTPClientListRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildCallArgsForHTTPClientListRetrievalRequestBuildingMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildCallArgsForHTTPClientUpdateMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildCallArgsForHTTPClientUpdateRequestBuildingMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDBClientArchiveMethodCallArgs() []jen.Code
- func (typ DataType) BuildDBClientArchiveMethodParams() []jen.Code
- func (typ DataType) BuildDBClientCreationMethodCallArgs() []jen.Code
- func (typ DataType) BuildDBClientCreationMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBClientExistenceMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBClientExistenceMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBClientListRetrievalMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBClientListRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBClientRetrievalMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBClientRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBClientUpdateMethodCallArgs(updatedVarName string) []jen.Code
- func (typ DataType) BuildDBClientUpdateMethodParams(p *Project, updatedVarName string) []jen.Code
- func (typ DataType) BuildDBQuerierArchiveMethodParams() []jen.Code
- func (typ DataType) BuildDBQuerierArchiveQueryBuildingArgs() []jen.Code
- func (typ DataType) BuildDBQuerierArchiveQueryMethodParams() []jen.Code
- func (typ DataType) BuildDBQuerierArchiveSomethingQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierArchiveSomethingTestPrerequisiteVariables(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierBuildSomethingExistsQueryTestCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierCreateSomethingQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierCreationMethodArgsToUseFromMethodTest() []jen.Code
- func (typ DataType) BuildDBQuerierCreationMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierCreationMethodQueryBuildingArgs() []jen.Code
- func (typ DataType) BuildDBQuerierCreationQueryBuildingMethodParams(p *Project, isModelsPackage bool) []jen.Code
- func (typ DataType) BuildDBQuerierExistenceMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierExistenceQueryBuildingArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierExistenceQueryMethodConditionalClauses(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierExistenceQueryMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierExistenceQueryMethodQueryBuildingWhereClause(p *Project) squirrel.Eq
- func (typ DataType) BuildDBQuerierGetListOfSomethingQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierGetSomethingQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierListRetrievalMethodArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierListRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierListRetrievalQueryBuildingMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierListRetrievalQueryMethodConditionalClauses(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierListRetrievalQueryMethodQueryBuildingWhereClause(p *Project) squirrel.Eq
- func (typ DataType) BuildDBQuerierRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierRetrievalQueryBuildingArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierRetrievalQueryMethodConditionalClauses(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierRetrievalQueryMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierRetrievalQueryMethodQueryBuildingWhereClause(p *Project) squirrel.Eq
- func (typ DataType) BuildDBQuerierRetrievalQueryTestCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierSomethingExistsQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierUpdateMethodArgs(updatedVarName string) []jen.Code
- func (typ DataType) BuildDBQuerierUpdateMethodParams(p *Project, updatedVarName string) []jen.Code
- func (typ DataType) BuildDBQuerierUpdateQueryBuildingMethodParams(p *Project, updatedVarName string) []jen.Code
- func (typ DataType) BuildDBQuerierUpdateSomethingQueryBuilderTestPreQueryLines(p *Project) []jen.Code
- func (typ DataType) BuildDBQuerierUpdateSomethingTestPrerequisiteVariables(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForDBQueriersCreationMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForDBQueriersExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientArchiveMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildArchiveRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildCreationRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildExistenceRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildListRetrievalRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildRetrievalRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientBuildUpdateRequestMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientCreationMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientListRetrievalTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildDependentObjectsForHTTPClientUpdateMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildExpectedQueryArgsForDBQueriersListRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildFormatCallArgsForHTTPClientCreationMethodTest(p *Project) (args []jen.Code)
- func (typ DataType) BuildFormatCallArgsForHTTPClientExistenceMethodTest(p *Project) (args []jen.Code)
- func (typ DataType) BuildFormatCallArgsForHTTPClientListMethodTest(p *Project) (args []jen.Code)
- func (typ DataType) BuildFormatCallArgsForHTTPClientRetrievalMethodTest(p *Project) (args []jen.Code)
- func (typ DataType) BuildFormatCallArgsForHTTPClientUpdateTest(p *Project) (args []jen.Code)
- func (typ DataType) BuildFormatStringForHTTPClientArchiveMethodTest(p *Project) (path string)
- func (typ DataType) BuildFormatStringForHTTPClientCreateMethodTest(p *Project) (path string)
- func (typ DataType) BuildFormatStringForHTTPClientExistenceMethodTest(p *Project) (path string)
- func (typ DataType) BuildFormatStringForHTTPClientListMethodTest(p *Project) (path string)
- func (typ DataType) BuildFormatStringForHTTPClientRetrievalMethodTest(p *Project) (path string)
- func (typ DataType) BuildFormatStringForHTTPClientSearchMethodTest() (path string)
- func (typ DataType) BuildFormatStringForHTTPClientUpdateMethodTest(p *Project) (path string)
- func (typ DataType) BuildGetListOfSomethingFromIDsArgs(p *Project) []jen.Code
- func (typ DataType) BuildGetListOfSomethingFromIDsArgsForTest(p *Project) []jen.Code
- func (typ DataType) BuildGetListOfSomethingFromIDsParams(p *Project) []jen.Code
- func (typ DataType) BuildGetListOfSomethingLogValues(p *Project) *jen.Statement
- func (typ DataType) BuildGetSomethingLogValues(p *Project) jen.Code
- func (typ DataType) BuildHTTPClientCreationMethodArgsForTest(p *Project) []jen.Code
- func (typ DataType) BuildHTTPClientCreationRequestBuildingMethodArgsForTest(p *Project) []jen.Code
- func (typ DataType) BuildHTTPClientRetrievalMethodTestDependentObjects(p *Project) []jen.Code
- func (typ DataType) BuildHTTPClientRetrievalTestCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionArchiveMethodCallArgs() []jen.Code
- func (typ DataType) BuildInterfaceDefinitionArchiveMethodParams() []jen.Code
- func (typ DataType) BuildInterfaceDefinitionCreationMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionExistenceMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionExistenceMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionListRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionRetrievalMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildInterfaceDefinitionUpdateMethodParams(p *Project, updatedVarName string) []jen.Code
- func (typ DataType) BuildMockDataManagerListRetrievalMethodCallArgs(p *Project) []jen.Code
- func (typ DataType) BuildMockDataManagerListRetrievalMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildMockDataManagerUpdateMethodCallArgs(updatedVarName string) []jen.Code
- func (typ DataType) BuildMockDataManagerUpdateMethodParams(p *Project, updatedVarName string) []jen.Code
- func (typ DataType) BuildMockInterfaceDefinitionCreationMethodCallArgs() []jen.Code
- func (typ DataType) BuildMockInterfaceDefinitionCreationMethodParams(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientArchiveMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientArchiveRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientCreateMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientCreateRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientExistenceMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientExistenceRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientListRequestMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientMethodThatFetchesAList(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientRetrievalMethod(p *Project, call bool) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientRetrievalRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientUpdateMethod(p *Project) []jen.Code
- func (typ DataType) BuildParamsForHTTPClientUpdateRequestBuildingMethod(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForDBClientArchiveMethodTest() []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForDBClientExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForDBClientRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForDBQueriersArchiveMethodTest() []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForDBQueriersListRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForServiceArchiveHandlerTest() []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForServiceCreateHandlerTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForServiceExistenceHandlerTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForServiceReadHandlerTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarCallArgsForServiceUpdateHandlerTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarDecsForDBQuerierRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBClientArchiveMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBClientCreateMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBClientExistenceMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBClientListRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBClientRetrievalMethodTest(p *Project) []jen.Code
- func (typ DataType) BuildRequisiteFakeVarsForDBQuerierListRetrievalMethodTest(p *Project, includeFilter bool) []jen.Code
- func (typ DataType) BuildRequisiteVarsForDBClientUpdateMethodTest(p *Project) []jen.Code
- func (typ DataType) ModifyQueryBuilderWithJoinClauses(p *Project, qb squirrel.SelectBuilder) squirrel.SelectBuilder
- func (typ DataType) ModifyQueryBuildingStatementWithJoinClauses(p *Project, qbStmt *jen.Statement) *jen.Statement
- func (typ DataType) MultipleOwnersBelongingToUser(p *Project) bool
- func (typ DataType) OwnedByAUserAtSomeLevel(p *Project) bool
- func (typ DataType) RestrictedToUserAtSomeLevel(p *Project) bool
- type Project
- func (p *Project) DatabaseIsEnabled(database validDatabase) bool
- func (p *Project) DatabaseV1Package(parts ...string) string
- func (p *Project) DisableDatabase(database validDatabase)
- func (p *Project) EnableDatabase(database validDatabase)
- func (p *Project) EnabledDatabases() []string
- func (p *Project) EnumerationPresent() bool
- func (p *Project) FakeModelsPackage(parts ...string) string
- func (p *Project) FindDependentsOfType(parentType DataType) []DataType
- func (p *Project) FindOwnerTypeChain(typ DataType) []DataType
- func (p *Project) FindOwnerTypeChainWithoutReversing(typ DataType) []DataType
- func (p *Project) FindType(name string) *DataType
- func (p *Project) HTTPClientV1Package(parts ...string) string
- func (p *Project) InternalAuthV1Package(parts ...string) string
- func (p *Project) InternalConfigV1Package(parts ...string) string
- func (p *Project) InternalEncodingV1Package(parts ...string) string
- func (p *Project) InternalMetricsV1Package(parts ...string) string
- func (p *Project) InternalSearchV1Package(parts ...string) string
- func (p *Project) InternalTracingV1Package(parts ...string) string
- func (p *Project) InternalV1Package(parts ...string) string
- func (p *Project) LastDataType() DataType
- func (p *Project) ModelsV1Package(parts ...string) string
- func (p *Project) ParseModels() error
- func (p *Project) RelativePath(parts ...string) string
- func (p *Project) SearchEnabled() bool
- func (p *Project) ServiceV1AuthPackage(parts ...string) string
- func (p *Project) ServiceV1FrontendPackage(parts ...string) string
- func (p *Project) ServiceV1OAuth2ClientsPackage(parts ...string) string
- func (p *Project) ServiceV1Package(parts ...string) string
- func (p *Project) ServiceV1UsersPackage(parts ...string) string
- func (p *Project) ServiceV1WebhooksPackage(parts ...string) string
- func (p *Project) TestUtilV1Package(parts ...string) string
- func (p *Project) Validate()
Constants ¶
const ( Postgres validDatabase = "postgres" MariaDB validDatabase = "mariadb" Sqlite validDatabase = "sqlite" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Coder ¶
func NewCodeWrapper ¶
NewCodeWrapper creates a new codeWrapper from some code
type DataField ¶
type DataField struct { Name wordsmith.SuperPalabra Type string UnderlyingType types.Type Pos token.Pos Pointer bool DefaultValue string ValidForCreationInput bool ValidForUpdateInput bool }
DataField represents a data model's field
type DataType ¶
type DataType struct { Name wordsmith.SuperPalabra Struct *types.Struct BelongsToUser bool IsEnumeration bool RestrictedToUser bool SearchEnabled bool BelongsToStruct wordsmith.SuperPalabra Fields []DataField }
DataType represents a data model
func BuildOwnershipChain ¶
BuildOwnershipChain takes a series of names and returns a slice of datatypes with ownership between them. So for instance, if you provided `Forum`, `Subforum`, and `Post` as input, the output would be:
[]DataType{ { Name: wordsmith.FromSingularPascalCase("Forum"), }, { Name: wordsmith.FromSingularPascalCase("Subforum"), BelongsToEnumeration: wordsmith.FromSingularPascalCase("Forum"), }, { Name: wordsmith.FromSingularPascalCase("Post"), BelongsToEnumeration: wordsmith.FromSingularPascalCase("Subforum"), }, }
func (DataType) BuildArgsForDBQuerierExistenceMethodTest ¶
func (DataType) BuildArgsForDBQuerierRetrievalMethodTest ¶
func (DataType) BuildArgsForDBQuerierTestOfArchiveQueryBuilder ¶
func (DataType) BuildArgsForDBQuerierTestOfListRetrievalQueryBuilder ¶
func (DataType) BuildArgsForDBQuerierTestOfUpdateMethod ¶
func (DataType) BuildArgsForDBQuerierTestOfUpdateQueryBuilder ¶
func (DataType) BuildArgsForHTTPClientArchiveMethodTest ¶
func (DataType) BuildArgsForHTTPClientArchiveMethodTestURLFormatCall ¶
func (DataType) BuildArgsForHTTPClientArchiveRequestBuildingMethod ¶
func (DataType) BuildArgsForHTTPClientArchiveRequestBuildingMethodTest ¶
func (DataType) BuildArgsForHTTPClientCreateRequestBuildingMethod ¶
func (DataType) BuildArgsForHTTPClientExistenceMethodTest ¶
func (DataType) BuildArgsForHTTPClientExistenceRequestBuildingMethod ¶
func (DataType) BuildArgsForHTTPClientExistenceRequestBuildingMethodTest ¶
func (DataType) BuildArgsForHTTPClientListRequestMethod ¶
func (DataType) BuildArgsForHTTPClientMethodTest ¶
func (DataType) BuildArgsForHTTPClientRetrievalRequestBuilderMethodTest ¶
func (DataType) BuildArgsForHTTPClientRetrievalRequestBuildingMethod ¶
func (DataType) BuildArgsForHTTPClientUpdateRequestBuildingMethod ¶
func (DataType) BuildArgsForServiceRouteExistenceCheck ¶
func (DataType) BuildArgsToUseForDBQuerierCreationQueryBuildingTest ¶
func (DataType) BuildCallArgsForDBClientCreationMethodTest ¶
func (DataType) BuildCallArgsForDBClientListRetrievalMethodTest ¶
func (DataType) BuildCallArgsForDBClientUpdateMethodTest ¶
func (DataType) BuildCallArgsForHTTPClientListRetrievalMethodTest ¶
func (DataType) BuildCallArgsForHTTPClientListRetrievalRequestBuildingMethodTest ¶
func (DataType) BuildCallArgsForHTTPClientUpdateMethodTest ¶
func (DataType) BuildCallArgsForHTTPClientUpdateRequestBuildingMethodTest ¶
func (DataType) BuildDBClientArchiveMethodCallArgs ¶
func (DataType) BuildDBClientArchiveMethodParams ¶
func (DataType) BuildDBClientCreationMethodCallArgs ¶
func (DataType) BuildDBClientCreationMethodParams ¶
func (DataType) BuildDBClientExistenceMethodCallArgs ¶
func (DataType) BuildDBClientExistenceMethodParams ¶
func (DataType) BuildDBClientListRetrievalMethodCallArgs ¶
func (DataType) BuildDBClientListRetrievalMethodParams ¶
func (DataType) BuildDBClientRetrievalMethodCallArgs ¶
func (DataType) BuildDBClientRetrievalMethodParams ¶
func (DataType) BuildDBClientUpdateMethodCallArgs ¶
func (DataType) BuildDBClientUpdateMethodParams ¶
func (DataType) BuildDBQuerierArchiveMethodParams ¶
func (DataType) BuildDBQuerierArchiveQueryBuildingArgs ¶
func (DataType) BuildDBQuerierArchiveQueryMethodParams ¶
func (DataType) BuildDBQuerierArchiveSomethingQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierArchiveSomethingTestPrerequisiteVariables ¶
func (DataType) BuildDBQuerierBuildSomethingExistsQueryTestCallArgs ¶
func (DataType) BuildDBQuerierCreateSomethingQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierCreationMethodArgsToUseFromMethodTest ¶
func (DataType) BuildDBQuerierCreationMethodParams ¶
func (DataType) BuildDBQuerierCreationMethodQueryBuildingArgs ¶
func (DataType) BuildDBQuerierCreationQueryBuildingMethodParams ¶
func (DataType) BuildDBQuerierExistenceMethodParams ¶
func (DataType) BuildDBQuerierExistenceQueryBuildingArgs ¶
func (DataType) BuildDBQuerierExistenceQueryMethodConditionalClauses ¶
func (DataType) BuildDBQuerierExistenceQueryMethodParams ¶
func (DataType) BuildDBQuerierExistenceQueryMethodQueryBuildingWhereClause ¶
func (DataType) BuildDBQuerierGetListOfSomethingQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierGetSomethingQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierListRetrievalMethodArgs ¶
func (DataType) BuildDBQuerierListRetrievalMethodParams ¶
func (DataType) BuildDBQuerierListRetrievalQueryBuildingMethodParams ¶
func (DataType) BuildDBQuerierListRetrievalQueryMethodConditionalClauses ¶
func (DataType) BuildDBQuerierListRetrievalQueryMethodQueryBuildingWhereClause ¶
func (DataType) BuildDBQuerierRetrievalMethodParams ¶
func (DataType) BuildDBQuerierRetrievalQueryBuildingArgs ¶
func (DataType) BuildDBQuerierRetrievalQueryMethodConditionalClauses ¶
func (DataType) BuildDBQuerierRetrievalQueryMethodParams ¶
func (DataType) BuildDBQuerierRetrievalQueryMethodQueryBuildingWhereClause ¶
func (DataType) BuildDBQuerierRetrievalQueryTestCallArgs ¶
func (DataType) BuildDBQuerierSomethingExistsQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierUpdateMethodArgs ¶
func (DataType) BuildDBQuerierUpdateMethodParams ¶
func (DataType) BuildDBQuerierUpdateQueryBuildingMethodParams ¶
func (DataType) BuildDBQuerierUpdateSomethingQueryBuilderTestPreQueryLines ¶
func (DataType) BuildDBQuerierUpdateSomethingTestPrerequisiteVariables ¶
func (DataType) BuildDependentObjectsForDBQueriersCreationMethodTest ¶
func (DataType) BuildDependentObjectsForDBQueriersExistenceMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientArchiveMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientBuildArchiveRequestMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientBuildCreationRequestMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientBuildExistenceRequestMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientBuildRetrievalRequestMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientBuildUpdateRequestMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientCreationMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientExistenceMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientListRetrievalTest ¶
func (DataType) BuildDependentObjectsForHTTPClientRetrievalMethodTest ¶
func (DataType) BuildDependentObjectsForHTTPClientUpdateMethodTest ¶
func (DataType) BuildExpectedQueryArgsForDBQueriersListRetrievalMethodTest ¶
func (DataType) BuildFormatCallArgsForHTTPClientCreationMethodTest ¶
func (DataType) BuildFormatCallArgsForHTTPClientExistenceMethodTest ¶
func (DataType) BuildFormatCallArgsForHTTPClientListMethodTest ¶
func (DataType) BuildFormatCallArgsForHTTPClientRetrievalMethodTest ¶
func (DataType) BuildFormatCallArgsForHTTPClientUpdateTest ¶
func (DataType) BuildFormatStringForHTTPClientArchiveMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientCreateMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientExistenceMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientListMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientRetrievalMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientSearchMethodTest ¶
func (DataType) BuildFormatStringForHTTPClientUpdateMethodTest ¶
func (DataType) BuildGetListOfSomethingFromIDsArgs ¶
func (DataType) BuildGetListOfSomethingFromIDsArgsForTest ¶
func (DataType) BuildGetListOfSomethingFromIDsParams ¶
func (DataType) BuildGetListOfSomethingLogValues ¶
func (DataType) BuildGetSomethingLogValues ¶
func (DataType) BuildHTTPClientCreationMethodArgsForTest ¶
func (DataType) BuildHTTPClientCreationRequestBuildingMethodArgsForTest ¶
func (DataType) BuildHTTPClientRetrievalMethodTestDependentObjects ¶
func (DataType) BuildHTTPClientRetrievalTestCallArgs ¶
func (DataType) BuildInterfaceDefinitionArchiveMethodCallArgs ¶
func (DataType) BuildInterfaceDefinitionArchiveMethodParams ¶
func (DataType) BuildInterfaceDefinitionCreationMethodParams ¶
func (DataType) BuildInterfaceDefinitionExistenceMethodCallArgs ¶
func (DataType) BuildInterfaceDefinitionExistenceMethodParams ¶
func (DataType) BuildInterfaceDefinitionListRetrievalMethodParams ¶
func (DataType) BuildInterfaceDefinitionRetrievalMethodCallArgs ¶
func (DataType) BuildInterfaceDefinitionRetrievalMethodParams ¶
func (DataType) BuildInterfaceDefinitionUpdateMethodParams ¶
func (DataType) BuildMockDataManagerListRetrievalMethodCallArgs ¶
func (DataType) BuildMockDataManagerListRetrievalMethodParams ¶
func (DataType) BuildMockDataManagerUpdateMethodCallArgs ¶
func (DataType) BuildMockDataManagerUpdateMethodParams ¶
func (DataType) BuildMockInterfaceDefinitionCreationMethodCallArgs ¶
func (DataType) BuildMockInterfaceDefinitionCreationMethodParams ¶
func (DataType) BuildParamsForHTTPClientArchiveMethod ¶
func (DataType) BuildParamsForHTTPClientArchiveRequestBuildingMethod ¶
func (DataType) BuildParamsForHTTPClientCreateMethod ¶
func (DataType) BuildParamsForHTTPClientCreateRequestBuildingMethod ¶
func (DataType) BuildParamsForHTTPClientExistenceMethod ¶
func (DataType) BuildParamsForHTTPClientExistenceRequestBuildingMethod ¶
func (DataType) BuildParamsForHTTPClientListRequestMethod ¶
func (DataType) BuildParamsForHTTPClientMethodThatFetchesAList ¶
func (DataType) BuildParamsForHTTPClientRetrievalMethod ¶
func (DataType) BuildParamsForHTTPClientRetrievalRequestBuildingMethod ¶
func (DataType) BuildParamsForHTTPClientUpdateMethod ¶
func (DataType) BuildParamsForHTTPClientUpdateRequestBuildingMethod ¶
func (DataType) BuildRequisiteFakeVarCallArgsForDBClientArchiveMethodTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForDBClientExistenceMethodTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForDBClientRetrievalMethodTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForDBQueriersArchiveMethodTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForDBQueriersListRetrievalMethodTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForServiceArchiveHandlerTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForServiceCreateHandlerTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForServiceExistenceHandlerTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForServiceReadHandlerTest ¶
func (DataType) BuildRequisiteFakeVarCallArgsForServiceUpdateHandlerTest ¶
func (DataType) BuildRequisiteFakeVarDecsForDBQuerierRetrievalMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBClientArchiveMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBClientCreateMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBClientExistenceMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBClientListRetrievalMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBClientRetrievalMethodTest ¶
func (DataType) BuildRequisiteFakeVarsForDBQuerierListRetrievalMethodTest ¶
func (DataType) BuildRequisiteVarsForDBClientUpdateMethodTest ¶
func (DataType) ModifyQueryBuilderWithJoinClauses ¶
func (typ DataType) ModifyQueryBuilderWithJoinClauses(p *Project, qb squirrel.SelectBuilder) squirrel.SelectBuilder
func (DataType) ModifyQueryBuildingStatementWithJoinClauses ¶
func (DataType) MultipleOwnersBelongingToUser ¶
func (DataType) OwnedByAUserAtSomeLevel ¶
func (DataType) RestrictedToUserAtSomeLevel ¶
type Project ¶
type Project struct { OutputPath string OutputPathStringToReplace string OutputPathSubstitution string EnableNewsman bool Name wordsmith.SuperPalabra DataTypes []DataType // contains filtered or unexported fields }
func CompleteSurvey ¶
func CompleteSurvey( projectName, sourceModels, outputPackage string, postgresEnabled, sqliteEnabled, mariaDBEnabled bool, ) (*Project, error)
CompleteSurvey asks the user questions to determine core project information
func (*Project) DatabaseIsEnabled ¶
func (*Project) DatabaseV1Package ¶
func (*Project) DisableDatabase ¶
func (p *Project) DisableDatabase(database validDatabase)
func (*Project) EnableDatabase ¶
func (p *Project) EnableDatabase(database validDatabase)
func (*Project) EnabledDatabases ¶
func (*Project) EnumerationPresent ¶
EnumerationPresent returns true if any of the datatypes are enumerations
func (*Project) FakeModelsPackage ¶
func (*Project) FindDependentsOfType ¶
func (*Project) FindOwnerTypeChain ¶
FindOwnerTypeChain returns the owner chain of a given object from highest ancestor to lowest so if C belongs to B belongs to A, then calling `FindOwnerTypeChain` for C would yield [A, B]
func (*Project) FindOwnerTypeChainWithoutReversing ¶
FindOwnerTypeChain returns the owner chain of a given object from highest ancestor to lowest so if C belongs to B belongs to A, then calling `FindOwnerTypeChain` for C would yield [A, B]
func (*Project) HTTPClientV1Package ¶
func (*Project) InternalAuthV1Package ¶
func (*Project) InternalConfigV1Package ¶
func (*Project) InternalEncodingV1Package ¶
func (*Project) InternalMetricsV1Package ¶
func (*Project) InternalSearchV1Package ¶
func (*Project) InternalTracingV1Package ¶
func (*Project) InternalV1Package ¶
func (*Project) LastDataType ¶
LastDataType is a helper method for tests
func (*Project) ModelsV1Package ¶
func (*Project) ParseModels ¶
func (*Project) RelativePath ¶
func (*Project) SearchEnabled ¶
SearchEnabled returns true if any of the datatypes have search enabled