golang

package
v1.3.97 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAnnotationsDef added in v1.2.36

func GenerateAnnotationsDef(annotations map[string]string) string

func GenerateEnumCode

func GenerateEnumCode(enumProperty *model.ResourceProperty) string

func GenerateGoResourceCode

func GenerateGoResourceCode(pkg string, resources []*model.Resource, actions map[*model.Resource][]*model.Resource, path string, namespace string) error

func GenerateInlineStructCode

func GenerateInlineStructCode(resource *model.Resource, properties []*model.ResourceProperty) string

func GeneratePropertyDef added in v1.2.36

func GeneratePropertyDef(resource *model.Resource, property *model.ResourceProperty) string

func GenerateResourceCode

func GenerateResourceCode(pkg string, resource *model.Resource) string

func GenerateResourceDefCode

func GenerateResourceDefCode(pkg string, resource *model.Resource) string

func GenerateResourceMappingBodyCode

func GenerateResourceMappingBodyCode(pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource) string

func GenerateResourceMappingCode

func GenerateResourceMappingCode(pkg string, resource *model.Resource, resources []*model.Resource) string

func GenerateResourceMappingHeaderCode

func GenerateResourceMappingHeaderCode(pkg string, resource *model.Resource, resources []*model.Resource) string

func GenerateStructCode

func GenerateStructCode(pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated) string

func GenerateStructDef added in v1.2.36

func GenerateStructDef(value *structpb.Value) string

func GoName

func GoName(name string) string

func GoTypeRaw

func GoTypeRaw(prop *model.ResourceProperty) string

func GoVarName

func GoVarName(name string) string

func GoVarName2 added in v1.2.21

func GoVarName2(name string) string

func HasPointer

func HasPointer(prop *model.ResourceProperty, collectionItem bool) bool

func NormalizePointer

func NormalizePointer(prop *model.ResourceProperty, varName string, collectionItem bool, mustHavePointer bool) string

func PreparePropertyFromMapping

func PreparePropertyFromMapping(resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool) string

func PropPureGoType

func PropPureGoType(resource *model.Resource, prop *model.ResourceProperty, actualName string) string

func PropertyTo

func PropertyTo(resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string) string

func PropertyType

func PropertyType(resource *model.Resource, prop *model.ResourceProperty) string

func StreamGenerateAnnotationsDef added in v1.2.36

func StreamGenerateAnnotationsDef(qw422016 *qt422016.Writer, annotations map[string]string)

func StreamGenerateEnumCode

func StreamGenerateEnumCode(qw422016 *qt422016.Writer, enumProperty *model.ResourceProperty)

func StreamGenerateInlineStructCode

func StreamGenerateInlineStructCode(qw422016 *qt422016.Writer, resource *model.Resource, properties []*model.ResourceProperty)

func StreamGeneratePropertyDef added in v1.2.36

func StreamGeneratePropertyDef(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty)

func StreamGenerateResourceCode

func StreamGenerateResourceCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)

func StreamGenerateResourceDefCode

func StreamGenerateResourceDefCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource)

func StreamGenerateResourceMappingBodyCode

func StreamGenerateResourceMappingBodyCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)

func StreamGenerateResourceMappingCode

func StreamGenerateResourceMappingCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func StreamGenerateResourceMappingHeaderCode

func StreamGenerateResourceMappingHeaderCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func StreamGenerateStructCode

func StreamGenerateStructCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)

func StreamGenerateStructDef added in v1.2.36

func StreamGenerateStructDef(qw422016 *qt422016.Writer, value *structpb.Value)

func StreamGoName

func StreamGoName(qw422016 *qt422016.Writer, name string)

func StreamGoTypeRaw

func StreamGoTypeRaw(qw422016 *qt422016.Writer, prop *model.ResourceProperty)

func StreamGoVarName

func StreamGoVarName(qw422016 *qt422016.Writer, name string)

func StreamNormalizePointer

func StreamNormalizePointer(qw422016 *qt422016.Writer, prop *model.ResourceProperty, varName string, collectionItem bool, mustHavePointer bool)

func StreamPreparePropertyFromMapping

func StreamPreparePropertyFromMapping(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool)

func StreamPropPureGoType

func StreamPropPureGoType(qw422016 *qt422016.Writer, resource *model.Resource, prop *model.ResourceProperty, actualName string)

func StreamPropertyTo

func StreamPropertyTo(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)

func StreamPropertyType

func StreamPropertyType(qw422016 *qt422016.Writer, resource *model.Resource, prop *model.ResourceProperty)

func StreamUGenerateResourceMappingBodyCode added in v1.3.43

func StreamUGenerateResourceMappingBodyCode(qw422016 *qt422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)

func StreamUPropertyTo added in v1.3.43

func StreamUPropertyTo(qw422016 *qt422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)

func UGenerateResourceMappingBodyCode added in v1.3.43

func UGenerateResourceMappingBodyCode(pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource) string

func UPropertyTo added in v1.3.43

func UPropertyTo(resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string) string

func WriteGenerateAnnotationsDef added in v1.2.36

func WriteGenerateAnnotationsDef(qq422016 qtio422016.Writer, annotations map[string]string)

func WriteGenerateEnumCode

func WriteGenerateEnumCode(qq422016 qtio422016.Writer, enumProperty *model.ResourceProperty)

func WriteGenerateInlineStructCode

func WriteGenerateInlineStructCode(qq422016 qtio422016.Writer, resource *model.Resource, properties []*model.ResourceProperty)

func WriteGeneratePropertyDef added in v1.2.36

func WriteGeneratePropertyDef(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty)

func WriteGenerateResourceCode

func WriteGenerateResourceCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)

func WriteGenerateResourceDefCode

func WriteGenerateResourceDefCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource)

func WriteGenerateResourceMappingBodyCode

func WriteGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)

func WriteGenerateResourceMappingCode

func WriteGenerateResourceMappingCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func WriteGenerateResourceMappingHeaderCode

func WriteGenerateResourceMappingHeaderCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, resources []*model.Resource)

func WriteGenerateStructCode

func WriteGenerateStructCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, name string, properties []*model.ResourceProperty, annotated annotations.Annotated)

func WriteGenerateStructDef added in v1.2.36

func WriteGenerateStructDef(qq422016 qtio422016.Writer, value *structpb.Value)

func WritePreparePropertyFromMapping

func WritePreparePropertyFromMapping(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty, valueVarName string, insideCollection bool)

func WritePropertyTo

func WritePropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)

func WriteUGenerateResourceMappingBodyCode added in v1.3.43

func WriteUGenerateResourceMappingBodyCode(qq422016 qtio422016.Writer, pkg string, resource *model.Resource, typeName string, properties []*model.ResourceProperty, resources []*model.Resource)

func WriteUPropertyTo added in v1.3.43

func WriteUPropertyTo(qq422016 qtio422016.Writer, resource *model.Resource, property *model.ResourceProperty, isCollectionItem bool, varName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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